mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-09 12:56:07 +08:00
removed unnecessary array
This commit is contained in:
parent
ccabc01ef3
commit
8ba3f40460
1 changed files with 11 additions and 11 deletions
|
|
@ -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();
|
||||
// );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue