mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 15:24:18 +00:00
parent
09b47d3348
commit
032757a6e5
@ -122,7 +122,9 @@ require('./extensions')(realmConstructor);
|
||||
if (realmConstructor.Sync) {
|
||||
if (getContext() === 'nodejs') {
|
||||
nodeRequire('./notifier')(realmConstructor);
|
||||
Object.defineProperty(realmConstructor, 'Worker', {value: nodeRequire('./worker')});
|
||||
if (!realmConstructor.Worker) {
|
||||
Object.defineProperty(realmConstructor, 'Worker', {value: nodeRequire('./worker')});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user