diff --git a/app/assets/javascripts/discourse/app/app.js b/app/assets/javascripts/discourse/app/app.js index a8c419b5b6b..74a066dc6fd 100644 --- a/app/assets/javascripts/discourse/app/app.js +++ b/app/assets/javascripts/discourse/app/app.js @@ -30,7 +30,7 @@ const Discourse = Application.extend({ start() { printDebugInfo(); - document.querySelector("noscript")?.remove(); + document.querySelectorAll("noscript").forEach((el) => el.remove()); // Rewire event handling to eliminate event delegation for better compat // between Glimmer and Classic components.