Display an error when visiting the bounce app without href

This commit is contained in:
yflory 2017-12-22 14:58:44 +01:00
parent 2fd22c6db6
commit bc5554f5f6
1 changed files with 4 additions and 1 deletions

View File

@ -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;
});