fix(macos): Always try to create webview, even if webkit runtime isn't detected correctly (#14276)

This commit is contained in:
Felix Häcker
2025-10-14 16:58:43 +02:00
committed by GitHub
parent 25e920e169
commit 684791efa6
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"tauri-runtime-wry": patch:bug
---
Always try to create macOS WebKit webview, even if webkit runtime doesn't get detected correctly

View File

@@ -4535,7 +4535,11 @@ You may have it installed on another user account, but it is not available for t
"#,
);
return Err(Error::WebviewRuntimeNotInstalled);
if cfg!(target_os = "macos") {
log::warn!("WebKit webview runtime not found, attempting to create webview anyway.");
} else {
return Err(Error::WebviewRuntimeNotInstalled);
}
}
#[allow(unused_mut)]