Mailbox and notifications prototype

This commit is contained in:
yflory
2019-05-15 18:22:39 +02:00
parent 3feb310fc4
commit ce2d0d5b83
5 changed files with 372 additions and 8 deletions

View File

@@ -877,6 +877,13 @@ define([
Cryptpad.cursor.execCommand(data, cb);
});
Cryptpad.mailbox.onEvent.reg(function (data) {
sframeChan.event('EV_MAILBOX_EVENT', data);
});
sframeChan.on('Q_MAILBOX_COMMAND', function (data, cb) {
Cryptpad.mailbox.execCommand(data, cb);
});
Cryptpad.onTimeoutEvent.reg(function () {
sframeChan.event('EV_WORKER_TIMEOUT');
});