diff --git a/packages/client/src/components/notification-toast.vue b/packages/client/src/components/notification-toast.vue
deleted file mode 100644
index 5c88b321a..000000000
--- a/packages/client/src/components/notification-toast.vue
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/client/src/scripts/initialize-sw.ts b/packages/client/src/scripts/initialize-sw.ts
index 30b4ae895..584a023ef 100644
--- a/packages/client/src/scripts/initialize-sw.ts
+++ b/packages/client/src/scripts/initialize-sw.ts
@@ -9,7 +9,7 @@ export async function initializeSw() {
navigator.serviceWorker.register('/sw.js', { scope: '/', type: 'classic' });
navigator.serviceWorker.ready.then(registration => {
registration.active?.postMessage({
- msg: 'initialize',
+ type: 'initialize',
lang,
});
@@ -33,14 +33,14 @@ export async function initializeSw() {
})
// When subscribe failed
.catch(async (err: Error) => {
- // 通知が許可されていなかったとき
+ // when notifications were not authorized
if (err.name === 'NotAllowedError') {
return;
}
-
- // 違うapplicationServerKey (または gcm_sender_id)のサブスクリプションが
- // 既に存在していることが原因でエラーになった可能性があるので、
- // そのサブスクリプションを解除しておく
+
+ // The error may have been caused by the fact that a subscription to a
+ // different applicationServerKey (or gcm_sender_id) already exists, so
+ // unsubscribe to it.
const subscription = await registration.pushManager.getSubscription();
if (subscription) subscription.unsubscribe();
});
diff --git a/packages/client/src/ui/_common_/common.vue b/packages/client/src/ui/_common_/common.vue
index 0eb9dedb1..3cec9b388 100644
--- a/packages/client/src/ui/_common_/common.vue
+++ b/packages/client/src/ui/_common_/common.vue
@@ -19,6 +19,7 @@