diff --git a/dokka-subprojects/plugin-base/src/main/resources/dokka/scripts/platform-content-handler.js b/dokka-subprojects/plugin-base/src/main/resources/dokka/scripts/platform-content-handler.js index 0ed0d38938..d1f4c13cd0 100644 --- a/dokka-subprojects/plugin-base/src/main/resources/dokka/scripts/platform-content-handler.js +++ b/dokka-subprojects/plugin-base/src/main/resources/dokka/scripts/platform-content-handler.js @@ -52,7 +52,9 @@ window.addEventListener('load', () => { filterSection.addEventListener('click', (event) => filterButtonHandler(event)) initializeFiltering() } - initTabs() // initTabs comes from ui-kit/tabs + if (typeof initTabs === 'function') { + initTabs() // initTabs comes from ui-kit/tabs + } handleAnchor() topNavbarOffset = document.getElementById('navigation-wrapper') darkModeSwitch()