enhance(client): emojisはIndexedDBに保存する (#10121)

* enhance(client): emojisはIndexedDBに保存する

* lastEmojisFetchedAt
This commit is contained in:
tamaina
2023-02-28 20:10:52 +09:00
committed by GitHub
parent 570f331477
commit c1e69e7a53
2 changed files with 19 additions and 10 deletions

View File

@@ -2,8 +2,6 @@ type Keys =
'v' |
'lastVersion' |
'instance' |
'emojis' | // TODO: indexed db
'lastEmojisFetchedAt' |
'account' |
'accounts' |
'latestDonationInfoShownAt' |
@@ -28,7 +26,9 @@ type Keys =
`miux:${string}` |
`ui:folder:${string}` |
`themes:${string}` |
`aiscript:${string}`;
`aiscript:${string}` |
'lastEmojisFetchedAt' | // DEPRECATED, stored in indexeddb (13.9.0~)
'emojis' // DEPRECATED, stored in indexeddb (13.9.0~);
export const miLocalStorage = {
getItem: (key: Keys) => window.localStorage.getItem(key),