Fix "realm constructor not defined" in JS remote debugging mode
This commit is contained in:
parent
2df308ae64
commit
f98eb7a4ec
|
@ -51,6 +51,13 @@ function getContext() {
|
||||||
return 'chromedebugger';
|
return 'chromedebugger';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Check if its in remote js debugging mode
|
||||||
|
// https://stackoverflow.com/a/42839384/3090989
|
||||||
|
if (typeof atob !== 'undefined') {
|
||||||
|
return 'chromedebugger';
|
||||||
|
}
|
||||||
|
|
||||||
// Otherwise, we must be in a "normal" react native situation.
|
// Otherwise, we must be in a "normal" react native situation.
|
||||||
// In that case, the Realm type should have been injected by the native code.
|
// In that case, the Realm type should have been injected by the native code.
|
||||||
// If it hasn't, the user likely forgot to run link.
|
// If it hasn't, the user likely forgot to run link.
|
||||||
|
|
Loading…
Reference in New Issue