blob: 9a7bb1b3b994ccad63c5132f77aa5f1482cbe1be (
plain) (
tree)
|
|
if (document.location.protocol != "https:"
&& (
window.location.hostname.endsWith("sijanec.eu")
|| window.location.hostname.endsWith("šijanec.eu")
|| window.location.hostname.endsWith("xn--ijanec-9jb.eu"))) {
fetch("/?preveri-https").then((response)=>{
document.getElementById("ponudi-https").hidden = false;
}).catch((error)=>{
console.log("ne bom predlagal HTTPS, ker HTTPS ne deluje, ker: "+error);
});
}
|