haldis/app/static/js/sw.js

14 lines
358 B
JavaScript
Raw Permalink Normal View History

2021-10-28 23:35:57 +02:00
// Service worker for PWA support
// Install Hook
// Triggered when the PWA is installed by the browser.
self.addEventListener("install", () => {
console.log("[Service Worker] Installed");
});
// Activate Hook
// Triggered when the PWA is activated by the browser.
self.addEventListener("activate", () => {
console.log("[Service Worker] Activated");
});