diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cdca40176..a8db269f3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Improvements - 依存関係の更新 - API: notifications/readは配列でも受け付けるように +- localStorageのaccountsはindexedDBで保持するように ### Bugfixes - チャンネルを作成しているとアカウントを削除できないのを修正 diff --git a/src/client/account.ts b/src/client/account.ts index bee6d09ada..cf52c4d828 100644 --- a/src/client/account.ts +++ b/src/client/account.ts @@ -29,8 +29,7 @@ export async function signout() { //#endregion //#region Remove push notification registration - const registration = await navigator.serviceWorker.ready - + const registration = await navigator.serviceWorker.ready; const push = await registration.pushManager.getSubscription(); if (!push) return; await fetch(`${apiUrl}/sw/unregister`, { diff --git a/src/client/scripts/idb-proxy.ts b/src/client/scripts/idb-proxy.ts index 23c7ee559d..21c4dcff65 100644 --- a/src/client/scripts/idb-proxy.ts +++ b/src/client/scripts/idb-proxy.ts @@ -13,7 +13,7 @@ let idbAvailable = typeof window !== 'undefined' ? !!window.indexedDB : true; if (idbAvailable) { try { - await createStore('keyval-store', 'keyval') + await createStore('keyval-store', 'keyval'); } catch (e) { console.error('idb open error', e); idbAvailable = false;