Skip to content

Commit

Permalink
use force ipc feature in protocol.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Feb 18, 2024
1 parent 3c1a319 commit 739a0e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/tauri/src/ipc/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ fn handle_ipc_message<R: Runtime>(message: String, manager: &AppManager<R>, labe
// the channel data command is the only command that uses a custom protocol on Linux
if webview.manager().webview.invoke_responder.is_none()
&& cmd != crate::ipc::channel::FETCH_CHANNEL_DATA_COMMAND
|| cfg!(feature = "force-ipc-v1-protocol")
{
fn responder_eval<R: Runtime>(
webview: &crate::Webview<R>,
Expand Down Expand Up @@ -314,6 +315,7 @@ fn handle_ipc_message<R: Runtime>(message: String, manager: &AppManager<R>, labe
match &response {
InvokeResponse::Ok(InvokeBody::Json(v)) => {
if !(cfg!(target_os = "macos") || cfg!(target_os = "ios"))
&& cmd != crate::ipc::channel::FETCH_CHANNEL_DATA_COMMAND
&& matches!(v, JsonValue::Object(_) | JsonValue::Array(_))
{
let _ = Channel::from_callback_fn(webview, callback).send(v);
Expand Down

0 comments on commit 739a0e8

Please sign in to comment.