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

The incorrect value ("window") was utilized when determining the Windows platform.
This commit is contained in:
yydcnjjw 2023-06-20 17:33:52 +08:00 committed by GitHub
parent c4e9740c83
commit 33f6aa438e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
}