Merge branch 'support' of github.com:xwiki-labs/cryptpad into notifications

This commit is contained in:
ClemDee
2019-06-27 17:14:55 +02:00
16 changed files with 507 additions and 160 deletions

View File

@@ -123,6 +123,7 @@ define([
var onMessage = function (data) {
// data = { type: 'type', content: {msg: 'msg', hash: 'hash'} }
console.log(data.type, data.content);
pushMessage(data);
if (!history[data.type]) { history[data.type] = []; }
history[data.type].push(data.content);