mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Revert "Fix idb"
This reverts commit dd17065129c66f5093add1192fcdf853123f7583.
This commit is contained in:
parent
f2b8903c1f
commit
91a059d616
@ -4,6 +4,7 @@ import {
|
||||
get as iget,
|
||||
set as iset,
|
||||
del as idel,
|
||||
createStore,
|
||||
} from 'idb-keyval';
|
||||
|
||||
const fallbackName = (key: string) => `idbfallback::${key}`;
|
||||
@ -12,9 +13,9 @@ let idbAvailable = typeof window !== 'undefined' ? !!window.indexedDB : true;
|
||||
|
||||
if (idbAvailable) {
|
||||
try {
|
||||
await iset('idb-test', 'test');
|
||||
await createStore('keyval-store', 'keyval');
|
||||
} catch (e) {
|
||||
console.error('idb error', e);
|
||||
console.error('idb open error', e);
|
||||
idbAvailable = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user