use async file decryption, listen for progress events.

pull/1/head
ansuz 8 years ago
parent bcd0303821
commit e78299aed6

File diff suppressed because one or more lines are too long

@ -80,6 +80,10 @@ define([
.on('decryptionError', function (e) { .on('decryptionError', function (e) {
var error = e.originalEvent; var error = e.originalEvent;
Cryptpad.alert(error.message); Cryptpad.alert(error.message);
})
.on('decryptionProgress', function (e) {
var progress = e.originalEvent;
console.log(progress.percent);
}); });
require(['/common/media-tag.js'], function (MediaTag) { require(['/common/media-tag.js'], function (MediaTag) {

Loading…
Cancel
Save