Correction dans l'animation de disparition du message de notification

This commit is contained in:
JonathanMM 2022-01-12 08:36:43 +01:00
parent b63949d4a7
commit 693edb33cc

View file

@ -11,8 +11,13 @@ export default class NotificationMessage {
this._currentTimeout = setTimeout(
(() => {
this._notificationArea.style.opacity = "0";
this._notificationArea.innerHTML = "";
this._currentTimeout = undefined;
this._currentTimeout = setTimeout(
(() => {
this._notificationArea.innerHTML = "";
this._currentTimeout = undefined;
}).bind(this),
1000
);
}).bind(this),
5000
);