Always use document.body.dataset.apiurl instead of the intermediate const apiUrl

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2025-03-31 21:38:28 +02:00
parent d7a516e964
commit b524a2f4b6
26 changed files with 115 additions and 105 deletions

View File

@@ -5,11 +5,11 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
/* global utils: false, apiUrl: false */
/* global utils: false */
$(function () {
$.ajax({
url: apiUrl + "/network/gateway",
url: document.body.dataset.apiurl + "/network/gateway",
data: { detailed: true },
}).done(function (data) {
var intl = new Intl.NumberFormat();