mirror of
https://github.com/pi-hole/web.git
synced 2026-04-19 16:30:52 +01:00
24
scripts/pi-hole/js/settings-privacy.js
Normal file
24
scripts/pi-hole/js/settings-privacy.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/* 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();
|
||||
});
|
||||
Reference in New Issue
Block a user