mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
@@ -1,8 +1,8 @@
|
||||
<!-- HTTPS -->
|
||||
|
||||
<script type="text/javascript">
|
||||
var baseUrl = '{{ .Site.BaseUrl }}';
|
||||
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||
var baseURL = '{{ .Site.BaseURL }}';
|
||||
var host = baseURL.substring(0, baseURL.length - 1).replace(/\//g, '');
|
||||
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||
window.location.protocol = 'https:';
|
||||
}
|
||||
|
Reference in New Issue
Block a user