DEV: Remove JQuery from app.js (#15449)

This commit is contained in:
David Taylor 2022-01-04 19:56:27 +00:00 committed by GitHub
parent a82e0db5ba
commit 6c5522db77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {