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