added comment to forceResolve function

pull/3094/head
Liana Husikyan 5 years ago committed by GitHub
parent 5a5d4f18f7
commit 1c863906ee
  1. 4
      src/app/ui/tooltip.js

@ -24,6 +24,10 @@ class Toaster {
animation(this.tooltip, css.animateTop.className) animation(this.tooltip, css.animateTop.className)
} }
/**
* Force resolve the promise to close
* the toaster ignoring timeout
*/
forceResolve () { forceResolve () {
if (this.id) clearTimeout(this.id) if (this.id) clearTimeout(this.id)
if (this.resolveFn) this.resolveFn() if (this.resolveFn) this.resolveFn()

Loading…
Cancel
Save