fix
This commit is contained in:
parent
dbb63dc5cb
commit
7b5e462760
|
@ -7,7 +7,7 @@ import {
|
|||
|
||||
const fallbackName = (key: string) => `idbfallback::${key}`;
|
||||
|
||||
let idbAvailable = window ? !!window.indexedDB : true;
|
||||
let idbAvailable = typeof window !== 'undefined' ? !!window.indexedDB : true;
|
||||
|
||||
if (idbAvailable) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue