Remove double url

This commit is contained in:
Xavier Guimard 2015-12-15 19:05:48 +00:00
parent e03b731ed6
commit ee8f1396c9

View File

@ -26,7 +26,7 @@
var nlangs = [navigator.language];
if (navigator.languages) nlangs = navigator.languages;
var langs = [],
langs2 = [];
langs2 = [];
nlangs.forEach(function(nl) {
availableLanguages.forEach(function(al) {
if (al == nl) {
@ -204,7 +204,7 @@
var url = rejection.headers();
if (rejection.status == 401 && url.authorization && url.authorization.match(/^http/)) {
/* TODO: replace this with a popup */
window.location = url.authorization + '?url=' + window.btoa(window.location).replace(/\//g, '_');
window.location = url.authorization;
} else {
alert(rejection.statusText);
}