通知設定が開けないのを修正
This commit is contained in:
parent
666c9be447
commit
e6112506df
1 changed files with 18 additions and 14 deletions
|
@ -141,6 +141,9 @@ function encode(buffer: ArrayBuffer | null) {
|
||||||
return outputArray;
|
return outputArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (navigator.serviceWorker == null) {
|
||||||
|
// TODO: よしなに?
|
||||||
|
} else {
|
||||||
navigator.serviceWorker.ready.then(async swr => {
|
navigator.serviceWorker.ready.then(async swr => {
|
||||||
registration = swr;
|
registration = swr;
|
||||||
|
|
||||||
|
@ -160,6 +163,7 @@ navigator.serviceWorker.ready.then(async swr => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
pushRegistrationInServer: $$(pushRegistrationInServer),
|
pushRegistrationInServer: $$(pushRegistrationInServer),
|
||||||
|
|
Loading…
Reference in a new issue