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:
Niklas Merz
2021-06-23 12:09:27 +02:00
committed by GitHub
parent 2fef3046fc
commit 9bc8f7629e
+1 -1
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!