Fixed querying ads over HTTPS

changed http: to // to always use the correct protocol

Fixes #352
This commit is contained in:
Martin
2017-01-12 11:07:49 +01:00
parent c1093527d0
commit fd21d04bfb

View File

@@ -16,7 +16,7 @@ function eventsource() {
}
var host = window.location.host;
var source = new EventSource("http://"+host+"/admin/scripts/pi-hole/php/queryads.php?domain="+domain.val().toLowerCase()+"&"+exact);
var source = new EventSource("//"+host+"/admin/scripts/pi-hole/php/queryads.php?domain="+domain.val().toLowerCase()+"&"+exact);
// Reset and show field
ta.empty();