From c23ea2a4fe96eb4b419aac8f9cd423978da057ae Mon Sep 17 00:00:00 2001 From: Xenon010101 Date: Sun, 31 May 2026 11:14:54 +0530 Subject: [PATCH] fix: rename localStorage theme key from qyx_theme to qyverix_theme Renamed the storage key used for persisting theme preference to use the application prefix, preventing key collision with other scripts that may use the shorter 'qyx' prefix. Closes #717 --- frontend/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index f8050b2..03b2c26 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,7 +13,7 @@ @@ -2817,7 +2817,7 @@

No suggestions yet

} const systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches; - const initialTheme = localStorage.getItem('qyx_theme') || (systemDark ? 'dark' : 'light'); + const initialTheme = localStorage.getItem('qyverix_theme') || (systemDark ? 'dark' : 'light'); document.documentElement.setAttribute('data-theme', initialTheme); setThemeIcon(initialTheme); @@ -2826,7 +2826,7 @@

No suggestions yet

const cur = document.documentElement.getAttribute('data-theme'); const next = cur === 'dark' ? 'light' : 'dark'; document.documentElement.setAttribute('data-theme', next); - localStorage.setItem('qyx_theme', next); + localStorage.setItem('qyverix_theme', next); setThemeIcon(next); });