mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-28 06:00:41 +00:00
Merge pull request #1436 from michelalbers/master
Fix for missing Realm constructor in js debugging mode
This commit is contained in:
commit
576d22d274
@ -51,6 +51,12 @@ 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user