all repos — underbbs @ 89df01f089e2e00fa6fbcc5fa147074cce4e81a2

decentralized social media client

ts/serviceWorker.ts (raw)

1
2
3
4
5
6
7
8
9
/// <reference lib="WebWorker" />

// export empty type because of tsc --isolatedModules flag
export type {};
declare const self: ServiceWorkerGlobalScope;

self.addEventListener('sync', (e: any) => {
  console.log(e);
});