This commit is contained in:
tamaina 2021-03-03 14:33:33 +09:00
parent dbb63dc5cb
commit 7b5e462760
1 changed files with 1 additions and 1 deletions

View File

@ -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 {