assets/js/alerts/contentHashLink.js in kcc-gem-theme-2.14.1 vs assets/js/alerts/contentHashLink.js in kcc-gem-theme-2.14.2

- old
+ new

@@ -80,21 +80,14 @@ checkForMatchingTabOrAccordion(hash); } return; } -function initContentHashLink() { +function contentHashLink() { checkForHash(); window.addEventListener('hashchange', checkForHash, false); -} -function contentHashLink() { - if (!document.querySelector('#accordion') && !document.querySelector('.navTabs')) - return; - - initContentHashLink(); - - import(/* webpackChunkName: 'addAccordionOrTabHistoryStates' */ './addAccordionOrTabHistoryStates').then(({ default: addAccordionOrTabHistoryStates }) => { + import('./addAccordionOrTabHistoryStates').then(({ default: addAccordionOrTabHistoryStates }) => { addAccordionOrTabHistoryStates(); }); } export default contentHashLink;