assets/js/nav/megaNav/megaNav.js in kcc-gem-theme-2.37.1 vs assets/js/nav/megaNav/megaNav.js in kcc-gem-theme-3.0.0

- old
+ new

@@ -1,14 +1,7 @@ import toggleMenuOnWindowResize from './toggleMenuOnWindowResize.js'; -import toggleDropdownOnWindowResize from './toggleDropdownOnWindowResizeTwo.js'; import googleCustomSearchInit from './googleCustomSearch.js'; -import closeMenuOnClick from './closeMegaNavOnClick.js'; -export default function megaNav() { - googleCustomSearchInit(); - if (window.location.pathname == '/') { - import('./underlineCurrentSite').then(({default: underlineCurrentSite}) => underlineCurrentSite()) - } - toggleMenuOnWindowResize(); - toggleDropdownOnWindowResize(); - closeMenuOnClick(); +export default function megaNav(Collapse) { + googleCustomSearchInit() + toggleMenuOnWindowResize(Collapse); }