mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
chore(deps): tauri 2.0.0-rc.3 (#1671)
* chore(deps): tauri 2.0.0-rc.3 * fix builds * fix deep link [skip ci]
This commit is contained in:
committed by
GitHub
parent
4dd7f5ddd8
commit
5d170a5444
@@ -24,6 +24,6 @@
|
||||
"LICENSE"
|
||||
],
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "^2.0.0-rc.0"
|
||||
"@tauri-apps/api": "^2.0.0-rc.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
### Permission Table
|
||||
## Permission Table
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use tauri::{
|
||||
ipc::{Channel, InvokeBody},
|
||||
ipc::{Channel, InvokeResponseBody},
|
||||
plugin::PluginApi,
|
||||
AppHandle, Runtime,
|
||||
};
|
||||
@@ -36,7 +36,7 @@ impl<R: Runtime> Geolocation<R> {
|
||||
) -> crate::Result<u32> {
|
||||
let channel = Channel::new(move |event| {
|
||||
let payload = match event {
|
||||
InvokeBody::Json(payload) => serde_json::from_value::<WatchEvent>(payload)
|
||||
InvokeResponseBody::Json(payload) => serde_json::from_str::<WatchEvent>(&payload)
|
||||
.unwrap_or_else(|error| {
|
||||
WatchEvent::Error(format!(
|
||||
"Couldn't deserialize watch event payload: `{error}`"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use tauri::{
|
||||
ipc::{Channel, InvokeBody},
|
||||
ipc::{Channel, InvokeResponseBody},
|
||||
plugin::{PluginApi, PluginHandle},
|
||||
AppHandle, Runtime,
|
||||
};
|
||||
@@ -51,7 +51,7 @@ impl<R: Runtime> Geolocation<R> {
|
||||
) -> crate::Result<u32> {
|
||||
let channel = Channel::new(move |event| {
|
||||
let payload = match event {
|
||||
InvokeBody::Json(payload) => serde_json::from_value::<WatchEvent>(dbg!(payload))
|
||||
InvokeResponseBody::Json(payload) => serde_json::from_str::<WatchEvent>(&payload)
|
||||
.unwrap_or_else(|error| {
|
||||
WatchEvent::Error(format!(
|
||||
"Couldn't deserialize watch event payload: `{error}`"
|
||||
|
||||
Reference in New Issue
Block a user