remove forced redirect from http to https
This commit is contained in:
parent
1d4d125605
commit
9b424c328c
5
main.js
5
main.js
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user