mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-07-02 05:18:42 +00:00
15 lines
397 B
JavaScript
15 lines
397 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
self.addEventListener("activate", event => {
|
|
// start controlling the already loaded page
|
|
event.waitUntil(self.clients.claim());
|
|
});
|
|
|
|
self.addEventListener("fetch", event => {
|
|
let response = new Response("Service worker response");
|
|
event.respondWith(response);
|
|
});
|