let users opera patch everything and add hiding to nav bar

This commit is contained in:
KingKDot
2026-04-17 18:43:16 -05:00
parent 4a062e3a19
commit d41607782a
11 changed files with 223 additions and 21 deletions
+5 -1
View File
@@ -16,7 +16,11 @@ const host = document.getElementById("top-nav");
if (host) {
const refs = mountNav(host);
showCertBannerIfNeeded(document.getElementById("sb-mobile-bar") || host);
const { applyAdaptiveNavLayout } = createAdaptiveNavController(host, refs);
const { applyAdaptiveNavLayout, navHide } = createAdaptiveNavController(host, refs);
if (refs.navHideBtn && navHide) {
refs.navHideBtn.addEventListener("click", () => navHide.setHidden(true));
}
const path = window.location.pathname;
const activeMap = {