mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-04 00:02:03 +08:00
CB-11869 Fix cordova-js android exec tests
Useragent Regexp result is null in node environment - add a check for it Updated cordova-js Increased e2e create specs timeout
This commit is contained in:
Vendored
+1
-1
@@ -112,7 +112,7 @@ androidExec.init = function() {
|
||||
//
|
||||
//It's ugly, but it's necessary.
|
||||
var check = navigator.userAgent.toLowerCase().match(/android\s[0-9].[0-9]/);
|
||||
var version_code = check[0].match(/4.[0-3].*/);
|
||||
var version_code = check && check[0].match(/4.[0-3].*/);
|
||||
if (version_code != null && nativeToJsBridgeMode == nativeToJsModes.EVAL_BRIDGE) {
|
||||
nativeToJsBridgeMode = nativeToJsModes.ONLINE_EVENT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user