mirror of
https://github.com/pi-hole/web.git
synced 2025-12-23 12:18:26 +00:00
Codacy
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// Credit: http://stackoverflow.com/a/10642418/2087442
|
// Credit: http://stackoverflow.com/a/10642418/2087442
|
||||||
function httpGet(ta,quiet,theUrl)
|
function httpGet(ta,theUrl)
|
||||||
{
|
{
|
||||||
var xmlhttp;
|
var xmlhttp;
|
||||||
if (window.XMLHttpRequest)
|
if (window.XMLHttpRequest)
|
||||||
@@ -18,15 +18,8 @@ function httpGet(ta,quiet,theUrl)
|
|||||||
{
|
{
|
||||||
ta.show();
|
ta.show();
|
||||||
ta.empty();
|
ta.empty();
|
||||||
if(!quiet)
|
|
||||||
{
|
|
||||||
ta.append(xmlhttp.responseText);
|
ta.append(xmlhttp.responseText);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
quietfilter(ta,xmlhttp.responseText);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
xmlhttp.open("GET", theUrl, false);
|
xmlhttp.open("GET", theUrl, false);
|
||||||
xmlhttp.send();
|
xmlhttp.send();
|
||||||
|
|||||||
Reference in New Issue
Block a user