Files
WRNexusJSDoc/public/theme-navigation.js
T
2026-07-12 16:14:06 +05:30

10 lines
368 B
JavaScript

/* global window, document */
// Re-bind theme controls after WRNexusJS swaps the page during client navigation.
// bind() is idempotent, so this is safe alongside newer framework runtimes.
window.addEventListener("wrnexus:navigated", function () {
if (window.wireTheme && typeof window.wireTheme.bind === "function") {
window.wireTheme.bind(document);
}
});