Display an error when visiting the bounce app without href

pull/1/head
yflory 7 years ago
parent 2fd22c6db6
commit bc5554f5f6

@ -5,7 +5,10 @@ define(['/api/config'], function (ApiConfig) {
return;
}
var bounceTo = decodeURIComponent(window.location.hash.slice(1));
if (!bounceTo) { return; }
if (!bounceTo) {
window.alert('The bounce application must only be used with a valid href to visit');
return;
}
window.opener = null;
window.location.href = bounceTo;
});

Loading…
Cancel
Save