Skip to content

Commit

Permalink
added check for at least iOS 9.0
Browse files Browse the repository at this point in the history
 This closes apache#24
  • Loading branch information
kelvinhokk authored and shazron committed Dec 5, 2016
1 parent bf24bb6 commit c28423b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/CDVWKWebViewEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ - (void)pluginInitialize
wkWebView.UIDelegate = self.uiDelegate;
self.engineWebView = wkWebView;

if ([self.viewController isKindOfClass:[CDVViewController class]]) {
if (IsAtLeastiOSVersion(@"9.0") && [self.viewController isKindOfClass:[CDVViewController class]]) {
wkWebView.customUserAgent = ((CDVViewController*) self.viewController).userAgent;
}

Expand Down

0 comments on commit c28423b

Please sign in to comment.