summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2021-10-07 14:26:16 +0900
committertamaina <tamaina@hotmail.co.jp>2021-10-07 14:26:16 +0900
commitdd17065129c66f5093add1192fcdf853123f7583 (patch)
tree7302489447388d1f390d12eb367ddf4b61ac197d /src
parentfix(api): fix file type regex (diff)
downloadsharkey-dd17065129c66f5093add1192fcdf853123f7583.tar.gz
sharkey-dd17065129c66f5093add1192fcdf853123f7583.tar.bz2
sharkey-dd17065129c66f5093add1192fcdf853123f7583.zip
Fix idb
Diffstat (limited to 'src')
-rw-r--r--src/client/scripts/idb-proxy.ts5
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;
}
}