Skip to content

Commit 387f4f2

Browse files
committed
fix android
1 parent 0201110 commit 387f4f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/tauri/src/protocol/tauri.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ fn get_response<R: Runtime>(
8989

9090
let path = path
9191
.strip_prefix(window_origin)
92+
// wry always sends us <scheme>://localhost format for custom protocols
93+
// even when it is actually http://<scheme>.localhost
94+
.or_else(|| path.strip_prefix("tauri://localhost"))
9295
.map(|p| p.to_string())
9396
.unwrap_or_default();
9497

0 commit comments

Comments
 (0)