2024-07-01 13:11:20 +02:00
|
|
|
import { main } from ':src/serviceworker/mod.ts'
|
2024-06-11 17:02:00 +02:00
|
|
|
|
|
|
|
const IS_SW = 'onpushsubscriptionchange' in self
|
|
|
|
|
|
|
|
export default function StartServiceWorker() {
|
|
|
|
if (IS_SW) {
|
2024-07-17 03:21:11 +02:00
|
|
|
main()
|
2024-06-11 17:02:00 +02:00
|
|
|
}
|
|
|
|
return new URL(import.meta.url).pathname
|
|
|
|
}
|