mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-19 23:00:15 +01:00
Update sw.js
This commit is contained in:
committed by
GitHub
parent
503973ee12
commit
13e410d5bf
@@ -4,7 +4,7 @@ request.send(null);
|
|||||||
const meta = JSON.parse(request.responseText).metadata,
|
const meta = JSON.parse(request.responseText).metadata,
|
||||||
ver = meta.version,
|
ver = meta.version,
|
||||||
betaVer = meta.betaVersion;
|
betaVer = meta.betaVersion;
|
||||||
const version = (window.location.indexOf('beta') == 0) ? betaVer : ver;
|
const version = (self.location.toString().indexOf('beta') == 0 || self.location.toString().includes('localhost') || self.location.toString().includes('127.0.0.1')) ? betaVer : ver;
|
||||||
|
|
||||||
const staticCacheName = `image-sequencer-static-v${version}`,
|
const staticCacheName = `image-sequencer-static-v${version}`,
|
||||||
is
|
is
|
||||||
|
|||||||
Reference in New Issue
Block a user