Skip to content

Commit

Permalink
toasts.js: initialize variables
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 18, 2021
1 parent bc999fa commit eb9c94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/page/ui/toasts.js
Expand Up @@ -8,8 +8,8 @@ class Toast {

this._content = this.container.querySelector('.toast-content');
this._content.textContent = message;
this._answerResolve;
this._hideTimeout;
this._answerResolve = null;
this._hideTimeout = null;

this.answer = new Promise((resolve) => {
this._answerResolve = resolve;
Expand Down

0 comments on commit eb9c94c

Please sign in to comment.