dont assume global is window
This commit is contained in:
parent
98a6d82820
commit
8366b44d8c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue