mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Always use document.body.dataset.apiurl instead of the intermediate const apiUrl
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* 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, apiFailure:false */
|
||||
/* global utils:false, apiFailure:false */
|
||||
var GETDict = {};
|
||||
|
||||
$(function () {
|
||||
@@ -35,7 +35,7 @@ function doSearch() {
|
||||
|
||||
$.ajax({
|
||||
method: "GET",
|
||||
url: apiUrl + "/search/" + encodeURIComponent(q),
|
||||
url: document.body.dataset.apiurl + "/search/" + encodeURIComponent(q),
|
||||
async: false,
|
||||
data: {
|
||||
partial: partial,
|
||||
|
||||
Reference in New Issue
Block a user