Skip to content

Commit

Permalink
⚡ Allow closing most success/error/warning messages in the bottom-rig…
Browse files Browse the repository at this point in the history
…ht corner with a click
  • Loading branch information
CosmoMyzrailGorynych committed Jul 19, 2024
1 parent 6862122 commit 8ea45b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/3rdparty/alertify.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@
}
}
}

this.notify(message, type, click);
},

Expand Down Expand Up @@ -219,6 +218,10 @@
// Add the click handler, if specified.
if (typeof click === 'function') {
log.addEventListener('click', click);
} else {
log.addEventListener('click', () => {
this.close(log, -1);
});
}

elLog.appendChild(log);
Expand Down

0 comments on commit 8ea45b1

Please sign in to comment.