import { main } from ':src/serviceworker/mod.ts'

const IS_SW = 'onpushsubscriptionchange' in self

export default function StartServiceWorker() {
	if (IS_SW) {
		main()
	}
	return new URL(import.meta.url).pathname
}
