canvas dep tweaks

This commit is contained in:
jywarren
2022-01-11 23:04:04 +00:00
parent 53b28c51c1
commit 31ca948472
3 changed files with 12 additions and 6 deletions

View File

@@ -30,19 +30,24 @@ RUN sudo apt-get update && apt-get install -y apt-transport-https \
libatk1.0-0 \
libc6 \
libcairo2 \
libcairo2-dev \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgbm1 \
libgcc1 \
libgif-dev \
libglib2.0-0 \
libgtk-3-0 \
libjpeg-dev \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libpango-1.0-dev \
libpangocairo-1.0-0 \
libstdc++6 \
librsvg2-dev \
libx11-6 \
libx11-xcb1 \
libxcb1 \

View File

@@ -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.

View File

@@ -1,6 +1,6 @@
{
"name": "image-sequencer",
"version": "3.6.0",
"version": "3.7.0",
"description": "A modular JavaScript image manipulation library modeled on a storyboard.",
"main": "src/ImageSequencer.js",
"scripts": {
@@ -88,6 +88,7 @@
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
"babelify": "^10.0.0",
"browserify": "17.0.0",
"canvas": "^2.8.0",
"eslint": "^8.0.0",
"grunt": "^1.0.3",
"grunt-browser-sync": "^2.2.0",