Remove last notification before creating new one
This commit is contained in:
parent
d9685178d2
commit
d434262540
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@
|
||||||
|
|
||||||
drawAttention();
|
drawAttention();
|
||||||
|
|
||||||
|
if (this.lastNotification) {
|
||||||
|
this.lastNotification.close();
|
||||||
|
}
|
||||||
const notification = new Notification(title, {
|
const notification = new Notification(title, {
|
||||||
body: message,
|
body: message,
|
||||||
icon: iconUrl,
|
icon: iconUrl,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue