Display an error when visiting the bounce app without href
This commit is contained in:
@@ -5,7 +5,10 @@ define(['/api/config'], function (ApiConfig) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var bounceTo = decodeURIComponent(window.location.hash.slice(1));
|
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.opener = null;
|
||||||
window.location.href = bounceTo;
|
window.location.href = bounceTo;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user