Skip to content

Commit 684791e

Browse files
fix(macos): Always try to create webview, even if webkit runtime isn't detected correctly (#14276)
1 parent 25e920e commit 684791e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-runtime-wry": patch:bug
3+
---
4+
5+
Always try to create macOS WebKit webview, even if webkit runtime doesn't get detected correctly

crates/tauri-runtime-wry/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4535,7 +4535,11 @@ You may have it installed on another user account, but it is not available for t
45354535
"#,
45364536
);
45374537

4538-
return Err(Error::WebviewRuntimeNotInstalled);
4538+
if cfg!(target_os = "macos") {
4539+
log::warn!("WebKit webview runtime not found, attempting to create webview anyway.");
4540+
} else {
4541+
return Err(Error::WebviewRuntimeNotInstalled);
4542+
}
45394543
}
45404544

45414545
#[allow(unused_mut)]

0 commit comments

Comments
 (0)