update: bump dashboard + disable sw

This commit is contained in:
Jean-Baptiste Pasquier 2020-11-19 14:04:15 +01:00
parent fbfed12bfb
commit 849b2e38bd
No known key found for this signature in database
GPG Key ID: CC04B91B949C163A
3 changed files with 13 additions and 13 deletions

View File

@ -36,7 +36,7 @@ if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints
//- script(type="module" src="/lib/solid-directory/dist/index.js" defer)
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-dashboard@0.5" defer)
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-dashboard@0.6" defer)
//- script(type="module" src="/lib/solid-dashboard/dist/index.js" defer)
if endpoints.users || (endpoints.get && endpoints.get.users)

View File

@ -1,11 +1,11 @@
if('serviceWorker' in navigator) {
var refreshing;
navigator.serviceWorker.addEventListener('controllerchange', () => {
if (refreshing) {
return;
}
refreshing = true;
window.location.reload();
});
navigator.serviceWorker.register('/sw.js');
}
// if('serviceWorker' in navigator) {
// var refreshing;
// navigator.serviceWorker.addEventListener('controllerchange', () => {
// if (refreshing) {
// return;
// }
// refreshing = true;
// window.location.reload();
// });
// navigator.serviceWorker.register('/sw.js');
// }

View File

@ -1,4 +1,4 @@
const CACHE_NAME = 'hubl-store-dev';
const CACHE_NAME = 'hubl-store';
self.addEventListener('install', function (e) {
self.skipWaiting();