Implement full CryptDrive export
This commit is contained in:
16
www/kanban/export.js
Normal file
16
www/kanban/export.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// This file is used when a user tries to export the entire CryptDrive.
|
||||
// Pads from the code app will be exported using this format instead of plain text.
|
||||
define([
|
||||
], function () {
|
||||
var module = {};
|
||||
|
||||
module.main = function (userDoc, cb) {
|
||||
var content = userDoc.content;
|
||||
cb(new Blob([JSON.stringify(content, 0, 2)], {
|
||||
type: 'application/json',
|
||||
}));
|
||||
};
|
||||
|
||||
return module;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user