mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
Bump to v3.7.0 (trouble with pangocairo lib) (#2034)
* update jywarren/imgareaselect from git:// to https:// https://github.blog/2021-09-01-improving-git-protocol-security-github/ * canvas dep tweaks * remove libpango-1.0-dev * libpango1.0-dev * ran npm install with node 16
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const staticCacheName = 'image-sequencer-static-v3.6.0';
|
||||
const staticCacheName = 'image-sequencer-static-v3.7.0';
|
||||
self.addEventListener('install', function(e) {
|
||||
e.waitUntil(
|
||||
caches.open(staticCacheName).then(function(cache) {
|
||||
@@ -38,19 +38,19 @@ self.addEventListener('fetch', function(event) {
|
||||
cache.put(event.request.url, response.clone());
|
||||
}
|
||||
return response;
|
||||
})
|
||||
});
|
||||
})
|
||||
.catch(function(err) {
|
||||
// Now the request has been failed so show cached data.
|
||||
return caches.match(event.request).then(function(res){
|
||||
if (res === undefined) {
|
||||
if (res === undefined) {
|
||||
// Display offline page
|
||||
return caches.match('offline.html');
|
||||
}
|
||||
return res;
|
||||
});
|
||||
})
|
||||
)
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
// When the update modal sends a 'skipWaiting' message, call the skipWaiting method.
|
||||
|
||||
Reference in New Issue
Block a user