From ba2309a54059c2158978abdf75a4c39b1091efb6 Mon Sep 17 00:00:00 2001 From: blagoev Date: Mon, 13 Nov 2017 23:31:33 +0200 Subject: [PATCH] revert the promise resolve --- lib/extensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extensions.js b/lib/extensions.js index 9b1757da..467e3347 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -76,7 +76,7 @@ module.exports = function(realmConstructor) { else { try { let syncedRealm = new realmConstructor(config); - resolve(syncedRealm); + setTimeout(() => { resolve(syncedRealm); }, 1); } catch (e) { reject(e); }