mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
parent
381dbbe7ba
commit
334e646d7b
@ -6,6 +6,8 @@
|
||||
|
||||
if (typeof Realm != 'undefined') {
|
||||
module.exports = Realm; // eslint-disable-line no-undef
|
||||
} else {
|
||||
} else if (navigator.userAgent) {
|
||||
module.exports = require('./realm');
|
||||
} else {
|
||||
throw new Error('Missing Realm constructor - please ensure RealmReact framework is included!');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user