dont assume global is window

This commit is contained in:
Bruno Windels 2020-09-28 14:52:12 +02:00
parent 98a6d82820
commit 8366b44d8c

View File

@ -30,7 +30,7 @@ export class StorageFactory {
delete(sessionId) {
const databaseName = sessionName(sessionId);
const req = window.indexedDB.deleteDatabase(databaseName);
const req = indexedDB.deleteDatabase(databaseName);
return reqAsPromise(req);
}