0
100
0
0
0
0

0

0

УСТАНОВИТЬ ПРИЛОЖЕНИЕ
{ "name": "Фликси: Хоррор", "short_name": "Фликси", "description": "Зомби-шутер с волнами", "start_url": "./index.html", "scope": "./", "display": "fullscreen", "orientation": "any", "background_color": "#0a0a0a", "theme_color": "#00ff00", "lang": "ru", "icons": [ { "src": "https://i.postimg.cc/ZYHMzRw9/Bez-nazvania86-20260828223733.png", "sizes": "192x192", "type": "image/png", "purpose": "any" }, { "src": "https://i.postimg.cc/ZYHMzRw9/Bez-nazvania86-20260828223733.png", "sizes": "512x512", "type": "image/png", "purpose": "any" }, { "src": "https://i.postimg.cc/ZYHMzRw9/Bez-nazvania86-20260828223733.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" } ] } const CACHE = 'flixy-v1'; const ASSETS = [ './', './index.html', './manifest.json', 'https://i.postimg.cc/ZYHMzRw9/Bez-nazvania86-20260828223733.png', 'https://i.postimg.cc/jnHYB75X/3393.jpg' ]; self.addEventListener('install', function(e){ self.skipWaiting(); e.waitUntil(caches.open(CACHE).then(function(c){ return c.addAll(ASSETS).catch(function(){}); })); }); self.addEventListener('activate', function(e){ e.waitUntil( caches.keys().then(function(keys){ return Promise.all(keys.filter(function(k){return k!==CACHE;}).map(function(k){return caches.delete(k);})); }).then(function(){ return self.clients.claim(); }) ); }); self.addEventListener('fetch', function(e){ e.respondWith( caches.match(e.request).then(function(r){ return r || fetch(e.request).then(function(resp){ if (resp && resp.status === 200 && resp.type === 'basic'){ var clone = resp.clone(); caches.open(CACHE).then(function(c){ c.put(e.request, clone); }); } return resp; }).catch(function(){ return caches.match('./index.html'); }); }) ); });