Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Redirect to SSL
  • Loading branch information
dustball committed Jun 6, 2012
1 parent 99da473 commit 88c421d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/signin.js
Expand Up @@ -304,6 +304,11 @@ function refreshPage() {
}

$(document).ready(function() {
if (!window.location.href.match("localhost")) {
if (window.location.protocol != "https:" || window.location.hostname != "hackerdojo-signin.appspot.com") {
window.location.href = "http://hackerdojo-signin.appspot.com/";
}
}
window.oldint = setInterval(refreshPage,15 *60* 1000);
window.oldfoc = setInterval('$("#em").focus();',1000);
auto_reset();
Expand Down

0 comments on commit 88c421d

Please sign in to comment.