mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 05:31:37 +08:00
Fixed HTTPS Redirect
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
name: QuaggaJS
|
||||
markdown: kramdown
|
||||
baseurl: /quaggaJS
|
||||
scheme: https://
|
||||
url: https://serratus.github.io
|
||||
host: serratus.github.io
|
||||
|
||||
exclude: [node_modules]
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<script>
|
||||
var host = "{{ site.url }}";
|
||||
var host = "{{ site.host }}";
|
||||
if ((host == window.location.host) && (window.location.protocol != "https:")) {
|
||||
window.location.protocol = "https";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user