Bug fix
This commit is contained in:
parent
60d2447e8c
commit
ccded713a6
37
index.html
37
index.html
@ -22,40 +22,41 @@
|
|||||||
<script src="scripts/messenger.js"></script>
|
<script src="scripts/messenger.js"></script>
|
||||||
<script id="onLoadStartUp">
|
<script id="onLoadStartUp">
|
||||||
function onLoadStartUp() {
|
function onLoadStartUp() {
|
||||||
|
|
||||||
document.body.classList.remove('hide-completely')
|
document.body.classList.remove('hide-completely')
|
||||||
isPinSet = false;
|
isPinSet = false;
|
||||||
|
|
||||||
floDapps.setCustomPrivKeyInput(signIn)
|
floDapps.setCustomPrivKeyInput(signIn)
|
||||||
showPage('loading_page')
|
showPage('loading_page')
|
||||||
getRef('emoji_picker').shadowRoot.append(style);
|
getRef('emoji_picker').shadowRoot.append(style);
|
||||||
|
|
||||||
//clear Rendered Elements
|
//clear Rendered Elements
|
||||||
let elementsToReset = ['inbox_mail_container', 'sent_mail_container', 'contacts_container', 'chat_container', 'messages_container',
|
let elementsToReset = ['inbox_mail_container', 'sent_mail_container', 'contacts_container', 'chat_container', 'messages_container',
|
||||||
'receiver_name', 'mail_contact_list'
|
'receiver_name', 'mail_contact_list'
|
||||||
]
|
]
|
||||||
//, "backup_info"
|
//, "backup_info"
|
||||||
elementsToReset.forEach(e => clearElement(getRef(e)))
|
elementsToReset.forEach(e => clearElement(getRef(e)))
|
||||||
|
|
||||||
|
chatMutationObserver.observe(getRef('messages_container'), {
|
||||||
chatMutationObserver.observe(getRef('messages_container'), {childList: true, subtree: true})
|
childList: true,
|
||||||
|
subtree: true
|
||||||
|
})
|
||||||
//invoke the startup functions
|
//invoke the startup functions
|
||||||
floDapps.launchStartUp().then(result => {
|
floDapps.launchStartUp().then(result => {
|
||||||
console.log(result)
|
console.log(result)
|
||||||
if(!isPinSet){
|
// if (!isPinSet) {
|
||||||
showFrame(2)
|
// showFrame(2)
|
||||||
}
|
// }
|
||||||
|
|
||||||
getRef("greet_tag").textContent = myFloID
|
getRef("greet_tag").textContent = myFloID
|
||||||
|
|
||||||
getRef('accent_color_selector').colors = selectedColors
|
getRef('accent_color_selector').colors = selectedColors
|
||||||
|
|
||||||
if(localStorage.getItem(`accent-color${myFloID}`)){
|
if (localStorage.getItem(`accent-color${myFloID}`)) {
|
||||||
const color = localStorage.getItem(`accent-color${myFloID}`)
|
const color = localStorage.getItem(`accent-color${myFloID}`)
|
||||||
getRef('accent_color_selector').selectedColor = color
|
getRef('accent_color_selector').selectedColor = color
|
||||||
document.body.style.setProperty('--accent-color', color);
|
document.body.style.setProperty('--accent-color', color);
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
getRef('accent_color_selector').selectedColor = '#3D5AFE'
|
getRef('accent_color_selector').selectedColor = '#3D5AFE'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,10 +73,8 @@
|
|||||||
//init messenger
|
//init messenger
|
||||||
messenger.init().then(result => {
|
messenger.init().then(result => {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
if(isPinSet){
|
loadPage();
|
||||||
loadPage()
|
}).catch(error => notify(error, "error"))
|
||||||
}
|
|
||||||
}).catch(error => notify(error, "error"));
|
|
||||||
}).catch(error => notify(error, "error"))
|
}).catch(error => notify(error, "error"))
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user