diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2021-10-07 14:26:16 +0900 |
|---|---|---|
| committer | tamaina <tamaina@hotmail.co.jp> | 2021-10-07 14:26:16 +0900 |
| commit | dd17065129c66f5093add1192fcdf853123f7583 (patch) | |
| tree | 7302489447388d1f390d12eb367ddf4b61ac197d /src | |
| parent | fix(api): fix file type regex (diff) | |
| download | sharkey-dd17065129c66f5093add1192fcdf853123f7583.tar.gz sharkey-dd17065129c66f5093add1192fcdf853123f7583.tar.bz2 sharkey-dd17065129c66f5093add1192fcdf853123f7583.zip | |
Fix idb
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/scripts/idb-proxy.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/scripts/idb-proxy.ts b/src/client/scripts/idb-proxy.ts index 21c4dcff65..5f76ae30bb 100644 --- a/src/client/scripts/idb-proxy.ts +++ b/src/client/scripts/idb-proxy.ts @@ -4,7 +4,6 @@ import { get as iget, set as iset, del as idel, - createStore, } from 'idb-keyval'; const fallbackName = (key: string) => `idbfallback::${key}`; @@ -13,9 +12,9 @@ let idbAvailable = typeof window !== 'undefined' ? !!window.indexedDB : true; if (idbAvailable) { try { - await createStore('keyval-store', 'keyval'); + await iset('idb-test', 'test'); } catch (e) { - console.error('idb open error', e); + console.error('idb error', e); idbAvailable = false; } } |