Skip to content

Commit

Permalink
fix: bump cocreate dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Apr 29, 2024
1 parent 5bcfd9c commit f6a4ebb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
"webpack-log": "^3.0.1"
},
"dependencies": {
"@cocreate/local-storage": "^1.12.0"
"@cocreate/local-storage": "^1.14.3"
}
}
}
16 changes: 13 additions & 3 deletions src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

const cacheName = "dynamic-v2";
const updatedOn = new Date('2024-04-28T03:15:28.668Z');
const updatedOn = new Date('2024-04-29T14:05:43.414Z');

let organization_id = ""
let storage = true
Expand All @@ -37,8 +37,18 @@ self.addEventListener("install", (e) => {
self.skipWaiting();
});

self.addEventListener("activate", async (e) => {
e.waitUntil(clients.claim());
// self.addEventListener("activate", async (e) => {
// e.waitUntil(clients.claim());
// });

self.addEventListener('activate', event => {
event.waitUntil(
clients.claim().then(() => {
return clients.matchAll({ type: 'window' }).then(clients => {
clients.forEach(client => client.navigate(client.url));
});
})
);
});

self.addEventListener("fetch", async (e) => {
Expand Down

0 comments on commit f6a4ebb

Please sign in to comment.