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.
cryptpad/www/sheet/export.js

25 lines
594 B
JavaScript

define([], function () {
var module = {
ext: '.xlsx', // default
exts: ['.xlsx']
};
module.main = function (userDoc, cb, ext, sframeChan, padData) {
sframeChan.query('Q_OOIFRAME_OPEN', {
json: userDoc,
type: 'sheet',
padData: padData
}, function (err, u8) {
if (!u8) { return void cb(''); }
var blob = new Blob([u8], {type: "application/bin;charset=utf-8"});
cb(blob);
}, {
timeout: 600000,
raw: true
});
};
return module;
});