Skip to content

Commit

Permalink
New iOS check
Browse files Browse the repository at this point in the history
  • Loading branch information
queueitdevs committed Oct 26, 2018
1 parent 2f40ba2 commit df64c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QueueITLib/QueueITWKViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ - (void)webView:(WKWebView*)webView decidePolicyForNavigationAction:(nonnull WKN
}
}
if (navigationAction.navigationType == WKNavigationTypeLinkActivated && !isQueueUrl) {
if ([[UIApplication sharedApplication] respondsToSelector:@selector(openURL:options:completionHandler:)]) {
if (@available(iOS 10.0, *)) {
[[UIApplication sharedApplication] openURL:[request URL] options:@{} completionHandler:nil];
}
else {
Expand Down

0 comments on commit df64c99

Please sign in to comment.