Skip to content

Commit

Permalink
Temp window url for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed Jan 7, 2025
1 parent 99475c7 commit 24e08f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/blocks/global-navigation/global-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,8 @@ class Gnav {
export default async function init(block) {
const { mep } = getConfig();
const sourceUrl = await getGnavSource();
const newMobileNav = new URLSearchParams(window.location.search).get('newNav') === 'true' || getMetadata('mobile-gnav-v2') !== 'false';
let newMobileNav = new URLSearchParams(window.location.search).get('newNav');
newMobileNav = newMobileNav ? newMobileNav !== 'false' : getMetadata('mobile-gnav-v2') !== 'false';
const [url, hash = ''] = sourceUrl.split('#');
if (hash === '_noActiveItem') {
setDisableAEDState();
Expand Down

0 comments on commit 24e08f9

Please sign in to comment.