Skip to content

Commit

Permalink
Fixed exception when opening Admin demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Dec 6, 2023
1 parent b651aff commit f8a56c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/admin.js
Expand Up @@ -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();
}
Expand Down

0 comments on commit f8a56c9

Please sign in to comment.