Skip to content

Commit

Permalink
Add a non-visitable function to the adapter interface
Browse files Browse the repository at this point in the history
This allows us to pass changes to the native adapter even for non-visitable links.
  • Loading branch information
olivaresf authored Oct 28, 2023
1 parent c476bac commit 1310937
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/WebView/turbo.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
this.postMessage("visitProposed", { location: location.toString(), options: options })
}

visitProposedToNonVisitableLocation(location) {
this.postMessage("visitProposed", { location: location.toString(), options: { } })
}

// Turbolinks 5
visitProposedToLocationWithAction(location, action) {
this.visitProposedToLocation(location, { action })
Expand Down

0 comments on commit 1310937

Please sign in to comment.