From 8ba3f40460ffda6f0571e2c6b590e51253b54b36 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 14 Jan 2022 12:25:47 +0100 Subject: [PATCH] removed unnecessary array --- src/js/elements/notifications.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/js/elements/notifications.js b/src/js/elements/notifications.js index 79270cd5e..3ce282794 100644 --- a/src/js/elements/notifications.js +++ b/src/js/elements/notifications.js @@ -1,4 +1,4 @@ -const notificationHistory = []; +// const notificationHistory = []; let id = 0; class Notification { constructor( @@ -141,14 +141,14 @@ export function add( customIcon, clickCallback ) { - notificationHistory.push( - new Notification( - message, - level, - duration, - customTitle, - customIcon, - clickCallback - ).show() - ); + // notificationHistory.push( + new Notification( + message, + level, + duration, + customTitle, + customIcon, + clickCallback + ).show(); + // ); }