Basic CryptDrive export with pads

This commit is contained in:
yflory
2018-10-17 14:32:33 +02:00
parent f4d5a7567f
commit 92ce311694
6 changed files with 211 additions and 3 deletions

View File

@@ -744,6 +744,15 @@ define([
Cryptpad.removeLoginBlock(data, cb);
});
sframeChan.on('Q_CRYPTGET', function (data, cb) {
Cryptget.get(data.hash, function (err, val) {
cb({
error: err,
data: val
});
}, data.opts);
});
if (cfg.addRpc) {
cfg.addRpc(sframeChan, Cryptpad, Utils);
}