FIX: Remove all noscript elements, not just the first one (#25145)

Regressed in 6c5522d
This commit is contained in:
Jarek Radosz 2024-01-08 17:15:36 +01:00 committed by GitHub
parent af937581e9
commit c9d9bdfbd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.