diff --git a/desktop/static/index.web.dev.html b/desktop/static/index.web.dev.html
index fb52ab9e0..0414adba0 100644
--- a/desktop/static/index.web.dev.html
+++ b/desktop/static/index.web.dev.html
@@ -143,16 +143,16 @@
window.location.reload();
});
- function toggleUI(main) {
+ function toggleTroubleshoot(troubleshootOn) {
const root = document.getElementById('root');
const troubleshoot = document.getElementById('troubleshoot');
- if (main) {
- root.style.display = 'block';
- troubleshoot.style.display = 'none';
- } else {
+ if (troubleshootOn) {
root.style.display = 'none';
troubleshoot.style.display = 'flex';
+ } else {
+ root.style.display = 'block';
+ troubleshoot.style.display = 'none';
}
}
@@ -216,10 +216,10 @@
window.flipperShowMessage = showMessage;
window.flipperShowNoConnection = () => {
- toggleUI(false);
+ toggleTroubleshoot(true);
};
window.flipperHideMessage = () => {
- toggleUI(true);
+ toggleTroubleshoot(false);
}
// load correct theme (n.b. this doesn't handle system value specifically, will assume light in such cases)
diff --git a/desktop/static/index.web.html b/desktop/static/index.web.html
index 8e6cac557..833f7efca 100644
--- a/desktop/static/index.web.html
+++ b/desktop/static/index.web.html
@@ -153,16 +153,16 @@
window.location.reload();
});
- function toggleUI(main) {
+ function toggleTroubleshoot(troubleshootOn) {
const root = document.getElementById('root');
const troubleshoot = document.getElementById('troubleshoot');
- if (main) {
- root.style.display = 'block';
- troubleshoot.style.display = 'none';
- } else {
+ if (troubleshootOn) {
root.style.display = 'none';
troubleshoot.style.display = 'flex';
+ } else {
+ root.style.display = 'block';
+ troubleshoot.style.display = 'none';
}
}
@@ -184,13 +184,13 @@
}
window.flipperShowMessage = showMessage;
window.flipperShowNoConnection = () => {
- toggleUI(false);
+ toggleTroubleshoot(true);
};
window.flipperHideMessage = () => {
const box = document.querySelector('.__infinity-dev-box-error');
box.setAttribute('hidden', true);
- toggleUI(true);
+ toggleTroubleshoot(false);
}
const closeButton = document.createElement('button');