Ability to open an anonymous read only shared folder

This commit is contained in:
yflory
2019-10-08 18:47:54 +02:00
parent 4e4d01a471
commit 9a0251f4ba
9 changed files with 33 additions and 14 deletions

View File

@@ -107,12 +107,17 @@ define([
sframeChan.event('EV_DRIVE_REMOVE', data);
});
};
var addData = function (meta) {
if (!window.CryptPad_newSharedFolder) { return; }
meta.anonSFHref = window.location.href;
};
SFCommonO.start({
afterSecrets: afterSecrets,
noHash: true,
noRealtime: true,
driveEvents: true,
addRpc: addRpc,
addData: addData,
isDrive: true,
});
});