Workflow updating files of ribc

This commit is contained in:
RanchiMall Dev 2025-08-25 10:13:18 +00:00
parent 8f0b6ad287
commit a300ad2dd4

View File

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