fix gatewayjs redirect

master
luoyang 6 years ago
parent eb77903ec1
commit adce31c4bf

@ -10,6 +10,7 @@ $(document).ready(function () {
alert('debug:origin redirect:' + window.redirect); alert('debug:origin redirect:' + window.redirect);
} }
var redirect = window.redirect; var redirect = window.redirect;
if (window.redirect !=null) {
while (redirect.indexOf('://') < 0) { while (redirect.indexOf('://') < 0) {
redirect = decodeURIComponent(redirect); redirect = decodeURIComponent(redirect);
if (redirect == window.redirect) { if (redirect == window.redirect) {
@ -17,6 +18,7 @@ $(document).ready(function () {
} }
window.redirect = redirect; window.redirect = redirect;
} }
}
} }

Loading…
Cancel
Save