fix
This commit is contained in:
parent
dbb63dc5cb
commit
7b5e462760
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import {
|
||||||
|
|
||||||
const fallbackName = (key: string) => `idbfallback::${key}`;
|
const fallbackName = (key: string) => `idbfallback::${key}`;
|
||||||
|
|
||||||
let idbAvailable = window ? !!window.indexedDB : true;
|
let idbAvailable = typeof window !== 'undefined' ? !!window.indexedDB : true;
|
||||||
|
|
||||||
if (idbAvailable) {
|
if (idbAvailable) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue