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…
Reference in New Issue