Enable notifications in secure pads
This commit is contained in:
@@ -489,7 +489,7 @@ define([
|
||||
// Notify only when the content has changed, not when someone has joined/left
|
||||
var oldSInner = stringify(JSON.parse(oldShjson)[2]);
|
||||
if (newSInner && newSInner !== oldSInner) {
|
||||
Cryptpad.notify();
|
||||
common.notify();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user