1
0
mirror of https://gitlab.com/free_zed/free_zed.gitlab.io.git synced 2024-06-08 23:42:37 +00:00
free_zed.gitlab.io/theme-uberspot/templates/js_https.html

10 lines
302 B
HTML
Raw Normal View History

{% 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 %}