mirror of
https://gitlab.com/free_zed/free_zed.gitlab.io.git
synced 2024-06-08 23:42:37 +00:00
10 lines
302 B
HTML
10 lines
302 B
HTML
|
{% if DOMAIN %}
|
||
|
<script type="text/javascript">
|
||
|
// Redirect to https with javascript
|
||
|
var host = "{{ DOMAIN }}";
|
||
|
if ((host == window.location.host) && (window.location.protocol != 'https:')) {
|
||
|
window.location = window.location.toString().replace(/^http:/, "https:");
|
||
|
}
|
||
|
</script>
|
||
|
{% endif %}
|