fix(theme): persist switcher accent for SSR
Quality / quality (ubuntu-latest) (push) Failing after 9m48s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-12 21:17:20 +05:30
parent effed1c3cf
commit dd9b7a289a
8 changed files with 11 additions and 25 deletions
+1 -2
View File
@@ -58,8 +58,7 @@ describe("theme accents", () => {
expect(runtime).toContain('"domain":"localhost"');
expect(runtime).toContain("deleteCookie(ACCENT_COOKIE);");
expect(runtime).toContain("writeCookie(ACCENT_COOKIE,name,ACCENT_COOKIE_OPTIONS)");
expect(runtime).toContain('window.addEventListener("focus",syncSharedAccent)');
expect(runtime).toContain("window.setInterval(syncSharedAccent,1000)");
expect(runtime).not.toContain("setInterval(syncSharedAccent");
});
});
test("live document accent has priority over cookie and default", () => {