mirror of
https://github.com/marcrobledo/RomPatcher.js.git
synced 2025-06-27 16:25:54 +00:00
fixing PWA cache
This commit is contained in:
parent
8ab9516238
commit
e5bc46d725
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
/* Rom Patcher JS v20200225 - Marc Robledo 2016-2020 - http://www.marcrobledo.com/license */
|
/* Rom Patcher JS v20200303 - Marc Robledo 2016-2020 - http://www.marcrobledo.com/license */
|
||||||
|
|
||||||
const TOO_BIG_ROM_SIZE=67108863;
|
const TOO_BIG_ROM_SIZE=67108863;
|
||||||
const HEADERS_INFO=[
|
const HEADERS_INFO=[
|
||||||
[/\.nes$/, 16, 1024], //interNES
|
[/\.nes$/, 16, 1024], //interNES
|
||||||
|
|
|
@ -20,7 +20,6 @@ caches.keys().then(function(cacheNames){
|
||||||
if(
|
if(
|
||||||
cacheNames[i]==='runtime' ||
|
cacheNames[i]==='runtime' ||
|
||||||
/^precache-\w+$/.test(cacheNames[i]) ||
|
/^precache-\w+$/.test(cacheNames[i]) ||
|
||||||
/^precache-editor-([\w\+]+)-\w+$/.test(cacheNames[i]) ||
|
|
||||||
/^v?\d+\w?$/.test(cacheNames[i])
|
/^v?\d+\w?$/.test(cacheNames[i])
|
||||||
){
|
){
|
||||||
console.log('deleting old cache: '+cacheNames[i]);
|
console.log('deleting old cache: '+cacheNames[i]);
|
||||||
|
@ -30,7 +29,7 @@ caches.keys().then(function(cacheNames){
|
||||||
});
|
});
|
||||||
|
|
||||||
var PRECACHE_ID='rom-patcher-js';
|
var PRECACHE_ID='rom-patcher-js';
|
||||||
var PRECACHE_VERSION='v7c';
|
var PRECACHE_VERSION='v8';
|
||||||
var PRECACHE_URLS=[
|
var PRECACHE_URLS=[
|
||||||
'/RomPatcher.js/','/RomPatcher.js/index.html',
|
'/RomPatcher.js/','/RomPatcher.js/index.html',
|
||||||
'/RomPatcher.js/manifest.json',
|
'/RomPatcher.js/manifest.json',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue