You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
425 B
JavaScript
10 lines
425 B
JavaScript
7 years ago
|
define([], function () {
|
||
|
if (window.localStorage && window.localStorage.FS_hash) {
|
||
|
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; }
|
||
|
window.location.href = bounceTo;
|
||
|
});
|