2017-12-12 09:44:20 +00:00
|
|
|
define(['/api/config'], function (ApiConfig) {
|
2017-12-12 09:47:01 +00:00
|
|
|
if (ApiConfig.httpSafeOrigin !== window.location.origin) {
|
2017-08-28 10:25:05 +00:00
|
|
|
window.alert('The bounce application must only be used from the sandbox domain, ' +
|
|
|
|
'please report this issue on https://github.com/xwiki-labs/cryptpad');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var bounceTo = decodeURIComponent(window.location.hash.slice(1));
|
|
|
|
if (!bounceTo) { return; }
|
2017-11-27 11:17:35 +00:00
|
|
|
window.opener = null;
|
2017-08-28 10:25:05 +00:00
|
|
|
window.location.href = bounceTo;
|
2017-11-23 11:28:49 +00:00
|
|
|
});
|