mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Remove unused filter_dnsmasq_warnings=true option
Also remove the old code used to read hideNonfatalDnsmasqWarnings_chkbox from localstorage. This value was a leftover from v5 web interface. Co-authored-by: RD WebDesign <github@rdwebdesign.com.br> Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user