diff --git a/lib/index.js b/lib/index.js index 813cde3a..95de52d2 100644 --- a/lib/index.js +++ b/lib/index.js @@ -51,6 +51,13 @@ function getContext() { 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. // 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.