InkSoul/themes/meme_cdn/assets/js/force-https.js

7 lines
192 B
JavaScript

{{ $url := urls.Parse .Site.BaseURL }}
{{ $host := $url.Host }}
if (window.location.host == "{{ $host }}" && window.location.protocol != "https:") {
window.location.protocol = "https";
}