Browse Source

fix: ipc scope not found error at windows (#7264)

The incorrect value ("window") was utilized when determining the Windows platform.
yydcnjjw 2 years ago
parent
commit
33f6aa438e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/tauri/src/manager.rs

+ 2 - 2
core/tauri/src/manager.rs

@@ -382,9 +382,9 @@ impl<R: Runtime> WindowManager<R> {
   }
 
   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())
   }