Do not create notification elements from two different places

This commit is contained in:
ClemDee
2019-07-01 11:12:16 +02:00
parent 999ba592a9
commit 604358d5dc
3 changed files with 12 additions and 33 deletions

View File

@@ -47,7 +47,7 @@ define([
var formatData = function (data) {
return JSON.stringify(data.content.msg.content);
};
var createElement = function (data) {
var createElement = mailbox.createElement = function (data) {
var notif;
notif = h('div.cp-notification', {
'data-hash': data.content.hash