summaryrefslogblamecommitdiffstats
path: root/assets/js/main.js
blob: 9a7bb1b3b994ccad63c5132f77aa5f1482cbe1be (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                               

                                                                             





                                                                                        
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);
	});
}