通知設定が開けないのを修正

This commit is contained in:
syuilo 2022-12-29 17:20:24 +09:00
parent 666c9be447
commit e6112506df

View file

@ -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),