Skip to content

Commit

Permalink
Resolves #1397 - safari14fix breaks fakeIndexedDB
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Sep 27, 2021
1 parent 62fed86 commit f9f1375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/dexie/dexie-open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function dexieOpen (db: Dexie) {
wasCreated = false;

// safari14Workaround = Workaround by jakearchibald for new nasty bug in safari 14.
return Promise.race([openCanceller, safari14Workaround().then(() => new Promise((resolve, reject) => {
return Promise.race([openCanceller, (typeof navigator === 'undefined' ? Promise.resolve() : safari14Workaround()).then(() => new Promise((resolve, reject) => {
// Multiply db.verno with 10 will be needed to workaround upgrading bug in IE:
// IE fails when deleting objectStore after reading from it.
// A future version of Dexie.js will stopover an intermediate version to workaround this.
Expand Down

0 comments on commit f9f1375

Please sign in to comment.