Skip to content

Commit

Permalink
fix using non-deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst committed Apr 10, 2024
1 parent a51864a commit 998d0c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ pub(super) fn open_browser_internal(
return Err(Error::new(ErrorKind::Other, "NSURL URLWithString failed"));
}

let no_options: *mut Object = msg_send![class!(NSDictionary), new];

let nil: *mut Object = ::core::ptr::null_mut();
// Open url
let () = msg_send![app, openURL: url_object];
let () = msg_send![app, openURL:url_object options:no_options completionHandler:nil];
Ok(())
}
}

0 comments on commit 998d0c1

Please sign in to comment.