mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-19 14:50:04 +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,
|
||||
ver = meta.version,
|
||||
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}`,
|
||||
is
|
||||
|
||||
Reference in New Issue
Block a user