Files
web/scripts/pi-hole/js/settings-privacy.js
DL6ER 74baa97aaf Add settings-privacy.lp
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-09 20:30:05 +02:00

25 lines
616 B
JavaScript

/* Pi-hole: A black hole for Internet advertisements
* (c) 2023 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
/* global setConfigValues: false, apiFailure: false */
function getConfig() {
$.ajax({
url: "/api/config/?detailed=true",
})
.done(function (data) {
setConfigValues("", "", data.config);
})
.fail(function (data) {
apiFailure(data);
});
}
$(document).ready(function () {
getConfig();
});