mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
16 lines
431 B
TypeScript
16 lines
431 B
TypeScript
/// <reference lib="webworker" />
|
|
/* eslint-disable no-restricted-globals */
|
|
|
|
import { clientsClaim } from 'workbox-core';
|
|
import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching';
|
|
|
|
declare const self: ServiceWorkerGlobalScope;
|
|
|
|
// Precache all assets specified in the manifest
|
|
cleanupOutdatedCaches();
|
|
precacheAndRoute(self.__WB_MANIFEST);
|
|
|
|
// Standard SW lifecycle methods
|
|
self.skipWaiting();
|
|
clientsClaim();
|