erisu commented on a change in pull request #886:
URL: https://github.com/apache/cordova-ios/pull/886#discussion_r439197973



##########
File path: 
CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m
##########
@@ -135,6 +135,16 @@ - (WKWebViewConfiguration*) 
createConfigurationFromSettings:(NSDictionary*)setti
     }
     configuration.applicationNameForUserAgent = userAgent;
 
+    if (@available(iOS 13.0, *)) {
+        NSString *contentMode = [settings 
cordovaSettingForKey:@"PreferredContentMode"];
+        if ([contentMode  isEqual: @"mobile"]) {
+            configuration.defaultWebpagePreferences.preferredContentMode = 
WKContentModeMobile;
+        } else if ([contentMode  isEqual: @"desktop"]) {

Review comment:
       ```suggestion
           } else if ([contentMode isEqual: @"desktop"]) {
   ```
   
   Removed double spaces




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to