mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
FIX: Remove all noscript elements, not just the first one (#25145)
Regressed in 6c5522d
This commit is contained in:
parent
af937581e9
commit
c9d9bdfbd1
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user