@stnd/launcher 1.8.3 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/launcher.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/launcher.ts
CHANGED
|
@@ -295,6 +295,8 @@ export async function bootLauncher() {
|
|
|
295
295
|
document.documentElement.setAttribute("data-theme", themeId);
|
|
296
296
|
if (typeof localStorage !== "undefined")
|
|
297
297
|
localStorage.setItem("std_theme", themeId);
|
|
298
|
+
if (typeof document !== "undefined")
|
|
299
|
+
document.cookie = `stnd_theme=${encodeURIComponent(themeId)}; Path=/; Max-Age=31536000; SameSite=Lax`;
|
|
298
300
|
|
|
299
301
|
// Persistence Tier: Save to preferences (Session/DB)
|
|
300
302
|
try {
|