From 0df096678a4bdf167494c1d9895ad452aaba2ee8 Mon Sep 17 00:00:00 2001 From: Bandana Laishram Date: Wed, 31 Jul 2024 10:42:05 +0530 Subject: [PATCH] Attaching loadblock to window --- libs/navigation/navigation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/navigation/navigation.js b/libs/navigation/navigation.js index ab721d2a47..5329b5a87d 100644 --- a/libs/navigation/navigation.js +++ b/libs/navigation/navigation.js @@ -11,7 +11,6 @@ const envMap = { stage: 'https://www.stage.adobe.com', qa: 'https://feds--milo--adobecom.hlx.page', }; - export default async function loadBlock(configs, customLib) { const { footer, locale, env = 'prod' } = configs || {}; const branch = new URLSearchParams(window.location.search).get('navbranch'); @@ -32,3 +31,5 @@ export default async function loadBlock(configs, customLib) { bootstrapBlock({ ...clientConfig, contentRoot: authoringPath, privacyId }, blockConfig.footer); } } + +window.loadNavigation = loadBlock;