mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
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:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user