Fix the way we check for AndroidBridge global (#11969)
* Change the way we check for AndroidBridge global * Modify logic to check for not undefined
This commit is contained in:
parent
ecd243c30e
commit
e48abdc586
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class Runtime {
|
|||
static isNativeAndroid(namespace = null) {
|
||||
const nativeCheck =
|
||||
/DEV-Native-android|ForemWebView/i.test(navigator.userAgent) &&
|
||||
AndroidBridge != undefined;
|
||||
typeof AndroidBridge !== 'undefined';
|
||||
|
||||
let namespaceCheck = true;
|
||||
if (nativeCheck && namespace) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue