From 13109372fff5a26e76c3e2a727db8fc22402b3c4 Mon Sep 17 00:00:00 2001 From: Fernando Date: Sat, 28 Oct 2023 11:04:33 -0600 Subject: [PATCH] Add a non-visitable function to the adapter interface This allows us to pass changes to the native adapter even for non-visitable links. --- Source/WebView/turbo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/WebView/turbo.js b/Source/WebView/turbo.js index 54508e5..86b7285 100644 --- a/Source/WebView/turbo.js +++ b/Source/WebView/turbo.js @@ -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 })