mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 14:54:33 +00:00
forgotten file
This commit is contained in:
parent
1ae58780bf
commit
d214b72fc6
@ -46,7 +46,7 @@ module.exports = function(realmConstructor) {
|
||||
return new Promise((resolve, reject) => {
|
||||
realmConstructor._waitForDownload(config, (error) => {
|
||||
if (error) {
|
||||
reject(new Error("Cannot asynchronously open synced Realm, because the associated session previously experienced a fatal error"));
|
||||
reject(error);
|
||||
}
|
||||
|
||||
let syncedRealm = new realmConstructor(config);
|
||||
@ -58,7 +58,7 @@ module.exports = function(realmConstructor) {
|
||||
openAsync(config, callback) {
|
||||
realmConstructor._waitForDownload(config, (error) => {
|
||||
if (error) {
|
||||
callback(new Error("Cannot asynchronously open synced Realm, because the associated session previously experienced a fatal error"));
|
||||
callback(error);
|
||||
}
|
||||
|
||||
let syncedRealm = new realmConstructor(config);
|
||||
|
Loading…
x
Reference in New Issue
Block a user