ai generated solutions to our ai generated problems

This commit is contained in:
2026-06-15 09:16:39 +01:00
parent e36268b556
commit f6afcf599b
6 changed files with 50 additions and 1249 deletions
+6
View File
@@ -205,6 +205,9 @@ function normalizeThemePreference(value) {
}
function storedThemePreference() {
const bootTheme = window.__TSS_BOOT_PREFERENCES__?.theme
if (bootTheme) return normalizeThemePreference(bootTheme)
const cookieValue = readCookie(themePreferenceCookie)
if (cookieValue) return normalizeThemePreference(cookieValue)
@@ -229,6 +232,9 @@ function persistThemePreference(theme) {
}
function storedAnalyticsPreferences() {
const bootPreferences = window.__TSS_BOOT_PREFERENCES__?.analyticsPreferences
if (bootPreferences) return normalizeAnalyticsPreferences(bootPreferences)
const cookieValue = readCookie(analyticsPreferencesCookie)
if (cookieValue) {
try {