Skip to content

Commit

Permalink
Don't reference mobile targets
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankumpf committed Mar 19, 2024
1 parent dde2d0f commit 1a55669
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,10 @@ fn main() -> anyhow::Result<()> {

let proxy = event_proxy.clone();

#[cfg(any(
target_os = "windows",
target_os = "macos",
target_os = "ios",
target_os = "android"
))]
#[cfg(any( target_os = "windows", target_os = "macos"))]
let builder = WebViewBuilder::new(&window);

#[cfg(not(any(
target_os = "windows",
target_os = "macos",
target_os = "ios",
target_os = "android"
)))]
#[cfg(not(any( target_os = "windows", target_os = "macos")))]
let builder = {
use wry::WebViewBuilderExtUnix;
let vbox = window.default_vbox().unwrap();
Expand Down

0 comments on commit 1a55669

Please sign in to comment.