ai generated solutions to our ai generated problems
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user