remove forced redirect from http to https

This commit is contained in:
Jon Atkins 2013-03-16 20:05:29 +00:00
parent 1d4d125605
commit 9b424c328c

View File

@ -21,11 +21,6 @@ window.iitcBuildDate = '@@BUILDDATE@@';
// disable vanilla JS // disable vanilla JS
window.onload = function() {}; window.onload = function() {};
if(window.location.protocol !== 'https:') {
var redir = window.location.href.replace(/^http:/, 'https:');
window.location = redir;
throw('Need to load HTTPS version.');
}
// rescue user data from original page // rescue user data from original page
var scr = document.getElementsByTagName('script'); var scr = document.getElementsByTagName('script');