mirror of
https://github.com/axllent/mailpit.git
synced 2026-06-28 06:56:06 +00:00
Chore: Limit subject length to 100 characters in browser notifications
This commit is contained in:
@@ -77,7 +77,8 @@ export default {
|
||||
if (!this.pauseNotifications) {
|
||||
this.pauseNotifications = true;
|
||||
const from = response.Data.From !== null ? response.Data.From.Address : "[unknown]";
|
||||
this.browserNotify("New mail from: " + from, response.Data.Subject);
|
||||
const subject = String(response.Data.Subject ?? "").substring(0, 100);
|
||||
this.browserNotify("New mail from: " + from, subject);
|
||||
this.setMessageToast(response.Data);
|
||||
// delay notifications by 2s
|
||||
window.setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user