summaryrefslogtreecommitdiffstats
path: root/assets/js/main.js
blob: c19eb0fd71d5329731ccc9cb33a99f7f795529b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
if (document.location.protocol != "https:"
	&& (
		window.location.hostname.endsWith("sijanec.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);
	});
}