mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-12 18:29:57 -05:00
12 lines
299 B
TypeScript
12 lines
299 B
TypeScript
|
/// <reference lib="webworker" />
|
||
|
import { precacheAndRoute } from 'workbox-precaching'
|
||
|
|
||
|
declare let self: ServiceWorkerGlobalScope
|
||
|
|
||
|
self.addEventListener('message', (event) => {
|
||
|
if (event.data && event.data.type === 'SKIP_WAITING')
|
||
|
self.skipWaiting()
|
||
|
})
|
||
|
|
||
|
precacheAndRoute(self.__WB_MANIFEST)
|