fix(capture countdown): Typo on cancel action

This commit is contained in:
Tixie 2019-04-26 21:21:21 +02:00
parent c68f59cc57
commit 73f5757693
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ class Countdown extends EventEmitter {
}
cancel () {
if (this.running && !this._ended) {
if (this._running && !this._ended) {
this._cleanup()
this._cancelled = true

View file

@ -104,7 +104,7 @@ export default {
this.countdown = null
})
this.countdown.on('done', () => {
this.countdown.on('cancelled', () => {
console.log('cancelled')
})