mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-23 03:38:16 +00:00
Move browser JS shim under its own directory
This commit is contained in:
parent
66404c4d81
commit
97e6166597
@ -23,7 +23,7 @@ if (typeof Realm != 'undefined') {
|
|||||||
module.exports = Realm; // eslint-disable-line no-undef
|
module.exports = Realm; // eslint-disable-line no-undef
|
||||||
} else if (navigator.userAgent) {
|
} else if (navigator.userAgent) {
|
||||||
// The userAgent will be defined when running in a browser (such as Chrome debugging mode).
|
// The userAgent will be defined when running in a browser (such as Chrome debugging mode).
|
||||||
module.exports = require('./realm');
|
module.exports = require('./browser');
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Missing Realm constructor - please ensure RealmReact framework is included!');
|
throw new Error('Missing Realm constructor - please ensure RealmReact framework is included!');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user