From 6c5522db77d04dc7927cf06c6dc0b770c934205b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 4 Jan 2022 19:56:27 +0000 Subject: [PATCH] DEV: Remove JQuery from app.js (#15449) --- app/assets/javascripts/discourse/app/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/app.js b/app/assets/javascripts/discourse/app/app.js index 8d0aa0b14f3..619b40cdfa4 100644 --- a/app/assets/javascripts/discourse/app/app.js +++ b/app/assets/javascripts/discourse/app/app.js @@ -52,7 +52,7 @@ const Discourse = Application.extend({ // Start up the Discourse application by running all the initializers we've defined. start() { - $("noscript").remove(); + document.querySelector("noscript")?.remove(); Object.keys(requirejs._eak_seen).forEach((key) => { if (/\/pre\-initializers\//.test(key)) {