Skip to content

Commit 6152409

Browse files
committed
force use the HTTP protocol instead of HTTPS
1 parent 356ae6e commit 6152409

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

api/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
var loaded = false;
66

77
window.api = {
8-
version: "0.8.4",
8+
version: "0.8.5",
99
thumbnail: {}
1010
};
1111

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fi
1515
if [[ -z $1 || $1 == "js" ]]; then
1616
echo "Compressing JS...";
1717
uglifyjs \
18+
forceHTTP.js \
1819
tools/*.js \
1920
dom.js \
2021
api/main.js \

forceHTTP.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
3+
if ( location.protocol === "https:" ) {
4+
location = "http" + location.href.substr( 5 );
5+
}

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
<!-- -->
197197

198198
<!-- Debug mode: - ->
199+
<script src="forceHTTP.js"></script>
199200
<script src="tools/utils.js"></script>
200201
<script src="dom.js"></script>
201202
<script src="api/main.js"></script>

main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)