From 33f6aa438eb675127813b8e5cbfcfb5b53b341d0 Mon Sep 17 00:00:00 2001 From: yydcnjjw Date: Tue, 20 Jun 2023 17:33:52 +0800 Subject: [PATCH] fix: ipc scope not found error at windows (#7264) The incorrect value ("window") was utilized when determining the Windows platform. --- core/tauri/src/manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 416692f55..2db699983 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -382,9 +382,9 @@ impl WindowManager { } pub(crate) fn protocol_url(&self) -> Cow<'_, Url> { - #[cfg(any(window, target_os = "android"))] + #[cfg(any(windows, target_os = "android"))] return Cow::Owned(Url::parse("https://tauri.localhost").unwrap()); - #[cfg(not(any(window, target_os = "android")))] + #[cfg(not(any(windows, target_os = "android")))] Cow::Owned(Url::parse("tauri://localhost").unwrap()) }