Skip to content

Commit

Permalink
Clarify proposed visit options
Browse files Browse the repository at this point in the history
  • Loading branch information
domchristie committed Sep 21, 2023
1 parent 61cb262 commit 53111fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/drive/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Navigator {
this.stop()
this.currentVisit = new Visit(this, expandURL(locatable), restorationIdentifier, {
referrer: this.location,
...this.currentVisitOptions,
...this.proposedVisitOptions,
...options
})
this.currentVisit.start()
Expand Down Expand Up @@ -159,13 +159,13 @@ export class Navigator {
}

#withTransferableVisitOptions(options, callback) {
this.currentVisitOptions = options
this.proposedVisitOptions = options
try {
callback.call(this, this.#sanitizeVisitOptionsForTransfer(options))
} catch (error) {
throw error
} finally {
this.currentVisitOptions = {}
this.proposedVisitOptions = {}
}
}

Expand Down

0 comments on commit 53111fd

Please sign in to comment.