use async file decryption, listen for progress events.
This commit is contained in:
parent
bcd0303821
commit
e78299aed6
File diff suppressed because one or more lines are too long
@ -80,6 +80,10 @@ define([
|
||||
.on('decryptionError', function (e) {
|
||||
var error = e.originalEvent;
|
||||
Cryptpad.alert(error.message);
|
||||
})
|
||||
.on('decryptionProgress', function (e) {
|
||||
var progress = e.originalEvent;
|
||||
console.log(progress.percent);
|
||||
});
|
||||
|
||||
require(['/common/media-tag.js'], function (MediaTag) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user