AUTH#1318 - Retour button test

This commit is contained in:
slothy 2015-09-11 13:36:05 +02:00
parent fd9a307039
commit 083db9379f
1 changed files with 1 additions and 4 deletions

View File

@ -79,14 +79,11 @@
try {
var parsed_referrer = new URL(document.referrer);
if (parsed_referrer.hostname.includes("lesechos")) {
alert("FUUUUUUUUUUUUUUU");
document.location = parsed_referrer.origin;
document.location.href = parsed_referrer.origin;
} else {
alert("MANGOSTA");
document.location.href = "http://www.lesechos-solutions.fr";
}
} catch(err) {
alert("LANGOSTA");
document.location.href = "http://www.lesechos-solutions.fr";
}
}