From f8a56c9b022b3c1a2a423d0a9f104811408a326f Mon Sep 17 00:00:00 2001 From: Lorenzo Miniero Date: Wed, 6 Dec 2023 18:32:49 +0100 Subject: [PATCH] Fixed exception when opening Admin demo --- html/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/admin.js b/html/admin.js index e2a68ccd3c..07e7a8a6cc 100644 --- a/html/admin.js +++ b/html/admin.js @@ -280,8 +280,8 @@ function updateServerInfo() { }); // Only check tokens if the mechanism is enabled if(!json["auth_token"]) { - $('a[href=#tokens]').addClass('disabled'); - $('a[href=#tokens]').attr('href', '#').unbind('click').click(function (e) { e.preventDefault(); return false; }); + $("a[href='#tokens']").addClass('disabled'); + $("a[href='#tokens']").attr('href', '#').unbind('click').click(function (e) { e.preventDefault(); return false; }); } else { updateTokens(); }