cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [1/2] cordova-plugin-wkwebview-engine git commit: added check for at least iOS 9.0
Date Mon, 05 Dec 2016 22:52:45 GMT
Repository: cordova-plugin-wkwebview-engine
Updated Branches:
  refs/heads/master d5591dece -> c28423b9a


added check for at least iOS 9.0

 This closes #24


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/commit/c28423b9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/c28423b9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/c28423b9

Branch: refs/heads/master
Commit: c28423b9a51b0b4932430ac0dc34f1eb04dacdd1
Parents: bf24bb6
Author: kelvinho <kelvinho@igloohome.co>
Authored: Thu Dec 1 00:14:06 2016 +0800
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Mon Dec 5 14:52:33 2016 -0800

----------------------------------------------------------------------
 src/ios/CDVWKWebViewEngine.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/c28423b9/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m
index 5d361c5..0985316 100644
--- a/src/ios/CDVWKWebViewEngine.m
+++ b/src/ios/CDVWKWebViewEngine.m
@@ -99,7 +99,7 @@
     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;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message