Skip to content

Commit

Permalink
Code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed May 28, 2024
1 parent 4a31360 commit ddc406e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/blocks/global-navigation/global-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,10 @@ class Gnav {
return 'linux';
};

const unavVersion = new URLSearchParams(window.location.search).get('unav');
const unavVersion = new URLSearchParams(window.location.search).get('unav') || '1.1';
await Promise.all([
loadScript(`https://${environment}.adobeccstatic.com/unav/${unavVersion || '1.1'}/UniversalNav.js`),
loadStyle(`https://${environment}.adobeccstatic.com/unav/${unavVersion || '1.1'}/UniversalNav.css`),
loadScript(`https://${environment}.adobeccstatic.com/unav/${unavVersion}/UniversalNav.js`),
loadStyle(`https://${environment}.adobeccstatic.com/unav/${unavVersion}/UniversalNav.css`),
]);

const getChildren = () => {
Expand Down

0 comments on commit ddc406e

Please sign in to comment.