Fix duplicate notications

This commit is contained in:
yflory
2019-05-27 14:03:15 +02:00
parent 8dd557a0f6
commit 6404e5c430
3 changed files with 97 additions and 30 deletions

View File

@@ -25,6 +25,7 @@ define([
var history = {};
var removeFromHistory = function (type, hash) {
if (!history[type]) { return; }
history[type] = history[type].filter(function (obj) {
return obj.hash !== hash;
});