diff --git a/web_src/js/bootstrap.js b/web_src/js/bootstrap.js index 15e5b21204..a2fe3d2ecd 100644 --- a/web_src/js/bootstrap.js +++ b/web_src/js/bootstrap.js @@ -8,6 +8,8 @@ __webpack_public_path__ = `${window.config?.assetUrlPrefix ?? '/assets'}/`; export function showGlobalErrorMessage(msg) { const pageContent = document.querySelector('.page-content'); if (!pageContent) return; + // Prevent a wall of errors being presented to the user. + if (document.querySelectorAll('.js-global-error').length >= 3) return; const el = document.createElement('div'); el.innerHTML = `
`; el.childNodes[0].textContent = msg;