From 64c3a5b5a82161d964fe727b823e6ae7d13e8e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 29 Aug 2023 09:10:38 +0200 Subject: [PATCH] correct entry point to use onInit method --- .../public-assets/App_Plugins/custom-entrypoint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/public-assets/App_Plugins/custom-entrypoint.js b/src/Umbraco.Web.UI.Client/public-assets/App_Plugins/custom-entrypoint.js index 8de2547b92..8c880ceb62 100644 --- a/src/Umbraco.Web.UI.Client/public-assets/App_Plugins/custom-entrypoint.js +++ b/src/Umbraco.Web.UI.Client/public-assets/App_Plugins/custom-entrypoint.js @@ -1,4 +1,4 @@ console.log('Hello from the custom entrypoint file!'); -export default function () { - console.log('Hello from the custom entrypoint inside the default function!'); +export function onInit() { + console.log('Hello from the custom entrypoint inside the onInit function!'); }