fix(boot): clear loading overlay after startup errors

This commit is contained in:
Codex committed 2026-09-26 20:32:29 +08:00
1 parent 3af7215854
commit 0d1da1352f
4 files changed
+18 -4

No files matched your search

+2 -1
View File
@@ -1,4 +1,4 @@
import { addonsJs, i18nJs, i18nRenderersJs, indexHtml } from "./assets.js";
import { addonsJs, bootGuardJs, i18nJs, i18nRenderersJs, indexHtml } from "./assets.js";
const BING_ARCHIVE = "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US";
const STATE_FIELDS = ["profile", "memories", "museum", "settings", "system"];
@@ -62,6 +62,7 @@ export default {
return Response.json({ error: "Bing wallpaper is temporarily unavailable", detail: String(error) }, { status: 502 });
}
if (url.pathname === "/addons.js") return new Response(addonsJs, { headers: headers("application/javascript; charset=utf-8", "no-cache") });
if (url.pathname === "/boot-guard.js") return new Response(bootGuardJs, { headers: headers("application/javascript; charset=utf-8", "no-cache") });
if (url.pathname === "/i18n.js") return new Response(i18nJs, { headers: headers("application/javascript; charset=utf-8", "no-cache") });
if (url.pathname === "/i18n-renderers.js") return new Response(i18nRenderersJs, { headers: headers("application/javascript; charset=utf-8", "no-cache") });
if (url.pathname === "/" || url.pathname === "/index.html") {