summaryrefslogtreecommitdiffstats
path: root/assets/js/main.js
blob: 72d0b6656ba80e2464bf977f8ed0478a7e48574c (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("šijanec.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);
	});
}