2024-04-28 19:33:10 +00:00
|
|
|
/// <reference lib="WebWorker" />
|
|
|
|
|
|
|
|
// export empty type because of tsc --isolatedModules flag
|
|
|
|
export type {};
|
|
|
|
declare const self: ServiceWorkerGlobalScope;
|
|
|
|
|
|
|
|
self.addEventListener('sync', (e: any) => {
|
2024-05-26 18:50:19 +00:00
|
|
|
console.log("I won't see this");
|
|
|
|
});
|
|
|
|
|
|
|
|
self.addEventListener("install", (e: any) => {
|
|
|
|
console.log("installation proceeding...")
|
|
|
|
});
|
|
|
|
|
|
|
|
self.addEventListener("activate", (e: any) => {
|
|
|
|
console.log("SW activated!");
|
|
|
|
});
|