Skip to content

Commit

Permalink
Update adapter to account for Location -> URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Jan 27, 2021
1 parent 0458ab8 commit b62782a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions turbo/src/main/assets/js/turbo_bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
// Adapter interface

visitProposedToLocation(location, options) {
TurboSession.visitProposedToLocation(location.absoluteURL, JSON.stringify(options))
TurboSession.visitProposedToLocation(location.toString(), JSON.stringify(options))
}

// Turbolinks 5
Expand All @@ -101,7 +101,7 @@
}

visitStarted(visit) {
TurboSession.visitStarted(visit.identifier, visit.hasCachedSnapshot(), visit.location.absoluteURL)
TurboSession.visitStarted(visit.identifier, visit.hasCachedSnapshot(), visit.location.toString())
this.currentVisit = visit
this.issueRequestForVisitWithIdentifier(visit.identifier)
this.changeHistoryForVisitWithIdentifier(visit.identifier)
Expand Down

0 comments on commit b62782a

Please sign in to comment.