fix(android): add space between default useragent and custom AppendUserAgent (#861)
cordova-android adds a space between the default user agent and the custom one: https://github.com/apache/cordova-android/blob/c144c0811249e22f91253ef919cc767f892a8fdf/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java#L214 With this change cordova-androids and the IAB user agent are exactly the same.
This commit is contained in:
@@ -970,7 +970,7 @@ public class InAppBrowser extends CordovaPlugin {
|
||||
settings.setUserAgentString(overrideUserAgent);
|
||||
}
|
||||
if (appendUserAgent != null) {
|
||||
settings.setUserAgentString(settings.getUserAgentString() + appendUserAgent);
|
||||
settings.setUserAgentString(settings.getUserAgentString() + " " + appendUserAgent);
|
||||
}
|
||||
|
||||
//Toggle whether this is enabled or not!
|
||||
|
||||
Reference in New Issue
Block a user