diff --git a/index.html b/index.html
index aaa20df..d9afc69 100644
--- a/index.html
+++ b/index.html
@@ -40,19 +40,24 @@
document.body.classList.remove('hidden')
floDapps.setCustomPrivKeyInput(getSignedIn);
floDapps.setMidStartup(() =>
- new Promise((resolve) => {
+ new Promise((resolve, reject) => {
RIBC.refreshObjectData().then(() => {
resolve()
- if (!floGlobals.loaded)
- routeTo(window.location.hash);
+ setTimeout(() => {
+ if (!floGlobals.loaded) {
+ routeTo(window.location.hash);
+ }
+ }, 0);
+ }).catch((err) => {
+ reject(err)
})
})
)
floDapps.launchStartUp().then(result => {
+ floGlobals.loaded = true
console.log(result)
console.log(`Welcome FLO_ID: ${myFloID}`)
RIBC.init(floGlobals.subAdmins.includes(myFloID)).then(result => {
- floGlobals.loaded = true
console.log(result)
renderAllElements()
routeTo(window.location.hash, { firstLoad: true })
@@ -1305,6 +1310,9 @@
routingAnimation.in = slideInRight;
routingAnimation.out = slideOutRight;
break;
+ case 'sign_in':
+ floGlobals.tempUserTaskRequest = null
+ break;
}
switch (pageId) {
case 'project_explorer':
@@ -1706,15 +1714,17 @@
categories.push(html`