File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -776,21 +776,11 @@ pub fn drain_ipc_messages(id: u64) -> Result<Vec<String>, WebViewError> {
776776
777777fn capture_screenshot_inner ( id : u64 ) -> Result < Vec < u8 > , WebViewError > {
778778 wry_log ! ( "[wrywebview] capture_screenshot id={}" , id) ;
779- with_webview ( id, |webview| {
780- #[ cfg( target_os = "macos" ) ]
781- {
782- webview
783- . screenshot ( )
784- . map_err ( |e| WebViewError :: Internal ( e. to_string ( ) ) )
785- }
786- #[ cfg( not( target_os = "macos" ) ) ]
787- {
788- // For other platforms, wry might not have screenshot() in 0.54
789- // Fallback to JVM paint() in WryWebViewPanel.kt if this returns error
790- Err ( WebViewError :: Internal (
791- "Native screenshot not implemented for this platform in Rust yet" . to_string ( ) ,
792- ) )
793- }
779+ with_webview ( id, |_webview| {
780+ // Fallback to JVM paint() in WryWebViewPanel.kt if this returns error
781+ Err ( WebViewError :: Internal (
782+ "Native screenshot not implemented for this platform in Rust yet" . to_string ( ) ,
783+ ) )
794784 } )
795785}
796786
You can’t perform that action at this time.
0 commit comments