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