diff --git a/desktop/static/index.dev.html b/desktop/static/index.dev.html
index a7624e2d7..86dddf06b 100644
--- a/desktop/static/index.dev.html
+++ b/desktop/static/index.dev.html
@@ -81,8 +81,10 @@
}
const box = document.querySelector('.__infinity-dev-box-error');
- box.removeAttribute('hidden');
- box.textContent = text;
+ if (box) {
+ box.removeAttribute('hidden');
+ box.textContent = text;
+ }
}
// 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.dev.html b/desktop/static/index.web.dev.html
index 77af1f863..64f8808e5 100644
--- a/desktop/static/index.web.dev.html
+++ b/desktop/static/index.web.dev.html
@@ -109,7 +109,9 @@
}
const box = document.getElementById('loading');
- box.textContent = text;
+ if (box) {
+ box.textContent = text;
+ }
}
window.flipperShowError = openError;