From 36a4067d67e321ee6e7df95d9ac11c5f40201932 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Tue, 16 Aug 2022 00:37:38 +0530 Subject: [PATCH] bug fix --- floDapps.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/floDapps.js b/floDapps.js index e2435a8..1da58b8 100644 --- a/floDapps.js +++ b/floDapps.js @@ -1,4 +1,4 @@ -(function(EXPORTS) { //floDapps v2.3.2b +(function(EXPORTS) { //floDapps v2.3.2c /* General functions for FLO Dapps*/ 'use strict'; const floDapps = EXPORTS; @@ -164,7 +164,7 @@ } //add other given objectStores initIndexedDB.appObs = initIndexedDB.appObs || {} - for (o in initIndexedDB.appObs) + for (let o in initIndexedDB.appObs) if (!(o in obs_a)) obs_a[o] = initIndexedDB.appObs[o] Promise.all([ @@ -456,7 +456,10 @@ Promise.all([p1, p2]) .then(r => resolve('App Startup finished successful')) .catch(e => reject('App Startup failed')) - }).catch(error => reject("App database initiation failed")) + }).catch(error => { + startUpLog(false, error); + reject("App database initiation failed") + }) }) }