mirror of https://github.com/xwiki-labs/cryptpad
Display an error when visiting the bounce app without href
This commit is contained in:
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…
Reference in New Issue