Enable notifications in secure pads

This commit is contained in:
yflory
2017-08-29 11:20:02 +02:00
parent 642dc17910
commit 51fa6287c1
4 changed files with 13 additions and 1 deletions

View File

@@ -151,6 +151,10 @@ define([
Cryptpad.logout(cb);
});
sframeChan.on('EV_NOTIFY', function () {
Cryptpad.notify();
});
sframeChan.on('Q_SET_LOGIN_REDIRECT', function (data, cb) {
sessionStorage.redirectTo = window.location.href;
cb();