Skip to content

Commit

Permalink
fix: ipc scope not found error at windows (#7264)
Browse files Browse the repository at this point in the history
The incorrect value ("window") was utilized when determining the Windows platform.
  • Loading branch information
yydcnjjw authored Jun 20, 2023
1 parent c4e9740 commit 33f6aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tauri/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 33f6aa4

Please sign in to comment.