diff --git a/appearance.js b/appearance.js deleted file mode 100644 index 01f58d5..0000000 --- a/appearance.js +++ /dev/null @@ -1,12 +0,0 @@ -(() => { - let theme = 'system'; - let language = navigator.language.startsWith('tr') ? 'tr' : 'en'; - try { - const storedTheme = localStorage.getItem('ascii-pwa-theme'); - const storedLanguage = localStorage.getItem('ascii-pwa-language'); - if (['system', 'light', 'dark'].includes(storedTheme)) theme = storedTheme; - if (['en', 'tr'].includes(storedLanguage)) language = storedLanguage; - } catch { /* Preferences remain available without persistent storage. */ } - document.documentElement.dataset.theme = theme; - document.documentElement.lang = language; -})(); diff --git a/index.html b/index.html index 99d374a..b49340c 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,20 @@ ascii! - + diff --git a/sw.js b/sw.js index fc0b3f4..690720c 100644 --- a/sw.js +++ b/sw.js @@ -1,10 +1,10 @@ // Bump VERSION whenever a shell file changes. New versions wait for approval. -const VERSION = 'v8'; +const VERSION = 'v9'; const BASE = self.registration.scope; const PREFIX = `ascii-pwa-${encodeURIComponent(BASE)}-`; const CACHE = `${PREFIX}${VERSION}`; const SHELL = [ - './', './index.html', './style.css', './appearance.js', './app.js', + './', './index.html', './style.css', './app.js', './renderer.js', './font-catalog.js', './vendor/figlet.js', './vendor/alpine.js', './translations.js', './pwa.js', './manifest.webmanifest', './fonts/IBMPlexMono-Regular.subset.woff2',