fix theme navigation and improve project scaffolding
This commit is contained in:
@@ -142,6 +142,7 @@ export function renderThemeRuntime(theme: ResolvedTheme): string {
|
||||
});
|
||||
}
|
||||
window.wireTheme={get:get,set:set,toggle:toggle,bind:bind,themes:THEMES};
|
||||
window.addEventListener("wrnexus:navigated",function(){bind(document);});
|
||||
if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",function(){bind(document);});
|
||||
else bind(document);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user