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:
c144c08112/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:
parent
2fef3046fc
commit
9bc8f7629e
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user