Move pad2 to pad and create bounce app
This commit is contained in:
10
www/bounce/main.js
Normal file
10
www/bounce/main.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
});
|
||||
Reference in New Issue
Block a user