Update index.html

This commit is contained in:
tripathyr 2025-08-25 15:42:30 +05:30 committed by GitHub
parent 56b06c1f49
commit 24a36627b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,6 +39,10 @@
<script src="scripts/ribc.min.js" defer></script>
<script id="onLoadStartUp">
function onLoadStartUp() {
if (!window.location.hash || window.location.hash === '#') {
window.location.hash = '#/dashboard_page'; // or '#/landing'
}
routeTo('loading')
document.body.classList.remove('hidden')
floDapps.setCustomPrivKeyInput(getSignedIn);
@ -48,7 +52,7 @@
.then(() => {
resolve()
setTimeout(() => {
if (!floGlobals.loaded) {
if (!floGlobals.loaded && window.location.hash && window.location.hash !== '#') {
routeTo(window.location.hash);
}
}, 0);
@ -88,6 +92,7 @@
RIBC.init(floGlobals.isSubAdmin).then(result => {
console.log(result)
renderAllElements()
if (!window.location.hash) window.location.hash = '#/dashboard_page'; // or '#/landing'
routeTo(window.location.hash, { firstLoad: true })
}).catch(error => console.error(error))
}).catch(error => console.error(error))