test
This commit is contained in:
parent
a6907c4c9e
commit
aeb7ccae4f
@ -42,13 +42,9 @@ onMounted(() => {
|
||||
auth.value = getAuth()
|
||||
|
||||
if (process.client) {
|
||||
if (!window) return;
|
||||
window.addEventListener('load', () => {
|
||||
if (!('serviceWorker' in navigator)) {
|
||||
throw new Error('serviceWorker is not supported in current browser!')
|
||||
}
|
||||
navigator.serviceWorker.register('/sw.js')
|
||||
})
|
||||
if ('serviceWorker' in navigator && window.isSecureContext) {
|
||||
navigator.serviceWorker.register('/sw.js');
|
||||
}
|
||||
}
|
||||
|
||||
onAuthStateChanged(auth.value, async (usr) => {
|
||||
|
Loading…
Reference in New Issue
Block a user