mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 18:48:31 +01:00
Merge branch 'migrate-accounts-to-idb' into swn
This commit is contained in:
commit
c21f6ad068
3 changed files with 3 additions and 3 deletions
|
@ -12,6 +12,7 @@
|
||||||
### Improvements
|
### Improvements
|
||||||
- 依存関係の更新
|
- 依存関係の更新
|
||||||
- API: notifications/readは配列でも受け付けるように
|
- API: notifications/readは配列でも受け付けるように
|
||||||
|
- localStorageのaccountsはindexedDBで保持するように
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
- チャンネルを作成しているとアカウントを削除できないのを修正
|
- チャンネルを作成しているとアカウントを削除できないのを修正
|
||||||
|
|
|
@ -29,8 +29,7 @@ export async function signout() {
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region Remove push notification registration
|
//#region Remove push notification registration
|
||||||
const registration = await navigator.serviceWorker.ready
|
const registration = await navigator.serviceWorker.ready;
|
||||||
|
|
||||||
const push = await registration.pushManager.getSubscription();
|
const push = await registration.pushManager.getSubscription();
|
||||||
if (!push) return;
|
if (!push) return;
|
||||||
await fetch(`${apiUrl}/sw/unregister`, {
|
await fetch(`${apiUrl}/sw/unregister`, {
|
||||||
|
|
|
@ -13,7 +13,7 @@ let idbAvailable = typeof window !== 'undefined' ? !!window.indexedDB : true;
|
||||||
|
|
||||||
if (idbAvailable) {
|
if (idbAvailable) {
|
||||||
try {
|
try {
|
||||||
await createStore('keyval-store', 'keyval')
|
await createStore('keyval-store', 'keyval');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('idb open error', e);
|
console.error('idb open error', e);
|
||||||
idbAvailable = false;
|
idbAvailable = false;
|
||||||
|
|
Loading…
Reference in a new issue