diff --git a/packages/backend/src/server/web/boot.js b/packages/backend/src/server/web/boot.js
index 124f25f5e..ac3f608ae 100644
--- a/packages/backend/src/server/web/boot.js
+++ b/packages/backend/src/server/web/boot.js
@@ -102,13 +102,112 @@
document.head.appendChild(style);
}
- // eslint-disable-next-line no-inner-declarations
function renderError(code, details) {
let errorsElement = document.getElementById('errors');
+
if (!errorsElement) {
- document.getElementsByTagName("head")[0].insertAdjacentHTML(
- "beforeend",
- ``);
+ document.head.insertAdjacentHTML("beforeend", `
+
+ `)
document.documentElement.innerHTML = `