mirror of
https://github.com/pi-hole/web.git
synced 2025-12-25 05:05:33 +00:00
Fixed querying ads over HTTPS
changed http: to // to always use the correct protocol Fixes #352
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user