10 lines
368 B
JavaScript
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);
|
|
}
|
|
});
|