Browse Source

Fix iron_load_url on ios

luboslenco 2 tuần trước cách đây
mục cha
commit
e54e472d57
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      base/sources/backends/ios_system.m

+ 2 - 1
base/sources/backends/ios_system.m

@@ -147,7 +147,8 @@ bool iron_keyboard_active(void) {
 }
 
 void iron_load_url(const char *url) {
-	[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithUTF8String:url]]];
+	NSURL *nsURL = [NSURL URLWithString:[NSString stringWithUTF8String:url]];
+	[[UIApplication sharedApplication] openURL:nsURL options:@{} completionHandler:nil];
 }
 
 const char *iron_language(void) {