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) {
|
|
|
|
main()
|
|
|
|
}
|
|
|
|
return new URL(import.meta.url).pathname
|
|
|
|
}
|