diff --git a/app.js b/app.js index d58e8a4..01f4608 100644 --- a/app.js +++ b/app.js @@ -572,7 +572,7 @@ function openAppModal(kind){ function closeAppModal(){ if(!appModal) return; appModal.classList.remove('visible'); appModal.setAttribute('aria-hidden','true'); } async function loadManifestVersion(){ - try{ const res = await fetch('manifest.webmanifest', {cache:'no-store'}); const m = await res.json(); appVersion = m.version || '1.2'; versionEl.textContent = `v${appVersion}`; } catch { versionEl.textContent = `v${appVersion}`; } + try{ const res = await fetch('manifest.webmanifest'); const m = await res.json(); appVersion = m.version || '1.2'; versionEl.textContent = `v${appVersion}`; } catch { versionEl.textContent = `v${appVersion}`; } } function showApp(){ app.hidden = false; renderView('home'); setTimeout(()=>splash.classList.add('is-hidden'), 850); setTimeout(()=>splash.remove(), 1300); } diff --git a/js/app-main.js b/js/app-main.js index e9ff30c..f5b6fe4 100644 --- a/js/app-main.js +++ b/js/app-main.js @@ -57,7 +57,7 @@ async function loadManifestVersion() { if (!versionEl) return; try { - const res = await fetch('manifest.webmanifest', { cache: 'no-store' }); + const res = await fetch('manifest.webmanifest'); const manifest = await res.json(); versionEl.textContent = `v${manifest.version || CONFIG.APP_VERSION}`; } catch { diff --git a/manifest.json b/manifest.json deleted file mode 100644 index ef16f2b..0000000 --- a/manifest.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "EasyTune", - "short_name": "EasyTune", - "description": "Transpozycja, akordy i metronom dla gitarzystów.", - "version": "1.2", - "id": "./", - "start_url": "./", - "scope": "./", - "launch_handler": { - "client_mode": "navigate-existing" - }, - "display_override": [ - "fullscreen", - "standalone", - "minimal-ui" - ], - "display": "standalone", - "orientation": "portrait-primary", - "background_color": "#26262a", - "theme_color": "#26262a", - "prefer_related_applications": false, - "categories": [ - "music", - "utilities" - ], - "icons": [ - { - "src": "icons/icon-192.png", - "sizes": "192x192", - "type": "image/png", - "purpose": "any" - }, - { - "src": "icons/icon-512.png", - "sizes": "512x512", - "type": "image/png", - "purpose": "any" - }, - { - "src": "icons/icon-192.png", - "sizes": "192x192", - "type": "image/png", - "purpose": "maskable" - }, - { - "src": "icons/icon-512.png", - "sizes": "512x512", - "type": "image/png", - "purpose": "maskable" - } - ] -} diff --git a/sw.js b/sw.js index 78cb307..857fc59 100644 --- a/sw.js +++ b/sw.js @@ -7,7 +7,6 @@ const APP_SHELL = [ './styles.css', './app.js', './manifest.webmanifest', - './manifest.json', './sw.js', './assets/easytune-logo.png', './icons/favicon.ico',