Skip to content

Commit

Permalink
Merge pull request jlongster#21 from quolpr/master
Browse files Browse the repository at this point in the history
Fix safari support jlongster#14
  • Loading branch information
jlongster authored Oct 13, 2021
2 parents 9e8e706 + 61c0a41 commit deb5fc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/indexeddb/file-ops-fallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ async function openDb(name) {
// happen async; the args to `write` must be closed over so they don't
// change
class Persistance {
constructor(onFallbackFailure) {
constructor(dbName, onFallbackFailure) {
this.dbName = dbName;
this._openDb = null;
this.hasAlertedFailure = false;
this.onFallbackFailure = onFallbackFailure;
Expand Down Expand Up @@ -135,7 +136,7 @@ export class FileOpsFallback {
this.lockType = 0;
this.transferBlockOwnership = false;

this.persistance = new Persistance(onFallbackFailure);
this.persistance = new Persistance(this.dbName, onFallbackFailure);
}

async readIfFallback() {
Expand Down

0 comments on commit deb5fc0

Please sign in to comment.