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:
Niklas Merz 2021-06-23 12:09:27 +02:00 committed by GitHub
parent 2fef3046fc
commit 9bc8f7629e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!