mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
fix(deep-link): issue with tauri alpha.20 emit breaking change (#844)
This commit is contained in:
committed by
GitHub
parent
bfa87da848
commit
8b1d821a37
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"deep-link": patch
|
||||
---
|
||||
|
||||
Fixes issue with tauri alpha.20.
|
||||
@@ -42,12 +42,7 @@ fn init_deep_link<R: Runtime, C: DeserializeOwned>(
|
||||
_ => None,
|
||||
};
|
||||
|
||||
let payload = vec![url];
|
||||
app_handle.trigger_global(
|
||||
"deep-link://new-url",
|
||||
Some(serde_json::to_string(&payload).unwrap()),
|
||||
);
|
||||
let _ = app_handle.emit_all("deep-link://new-url", payload);
|
||||
let _ = app_handle.emit("deep-link://new-url", vec![url]);
|
||||
Ok(())
|
||||
}),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user