Verified Commit 48b78f72 authored by Alex's avatar Alex
Browse files

Remove JavaScript-based HTTPS redirection

Because Gitlab.com now supports redirection.
parent 8c676e77
Pipeline #22718107 passed with stages
in 27 seconds
......@@ -20,5 +20,4 @@
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css" />
<script src="/js/main.js"></script>
</head>
// JavaScript-based HTTPS redirection because we're running on GitLab's servers.
var host = "pujol.io";
if ((host == window.location.host) && (window.location.protocol != 'https:')) {
window.location = window.location.toString().replace(/^http:/, "https:");
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment