Remove some unused code (leftover from v5) (#3636)

This commit is contained in:
Adam Warner
2025-10-28 13:37:21 +00:00
committed by GitHub
2 changed files with 2 additions and 14 deletions

View File

@@ -13,13 +13,7 @@ let table;
const toasts = {};
$(() => {
const ignoreNonfatal = localStorage
? localStorage.getItem("hideNonfatalDnsmasqWarnings_chkbox") === "true"
: false;
const url =
document.body.dataset.apiurl +
"/info/messages" +
(ignoreNonfatal ? "?filter_dnsmasq_warnings=true" : "");
const url = document.body.dataset.apiurl + "/info/messages";
table = $("#messagesTable").DataTable({
ajax: {
url,

View File

@@ -386,14 +386,8 @@ function colorBar(percentage, total, cssClass) {
}
function checkMessages() {
const ignoreNonfatal = localStorage
? localStorage.getItem("hideNonfatalDnsmasqWarnings_chkbox") === "true"
: false;
$.ajax({
url:
document.body.dataset.apiurl +
"/info/messages/count" +
(ignoreNonfatal ? "?filter_dnsmasq_warnings=true" : ""),
url: document.body.dataset.apiurl + "/info/messages/count",
method: "GET",
dataType: "json",
})