diff --git a/plugins/themeSwitch/themeSwitchMain.js b/plugins/themeSwitch/themeSwitchMain.js index eba9827..114c13e 100644 --- a/plugins/themeSwitch/themeSwitchMain.js +++ b/plugins/themeSwitch/themeSwitchMain.js @@ -1,4 +1,4 @@ -export default async () => { +(async () => { while (!window.stash) { await new Promise((resolve) => setTimeout(resolve, 100)); } @@ -684,4 +684,4 @@ export default async () => { window.addEventListener("beforeunload", function () { menuCreated = false; }); -}; +})();