Skip to content

Commit

Permalink
fix: abort method
Browse files Browse the repository at this point in the history
fixes issue #10
  • Loading branch information
kukhariev committed Feb 24, 2019
1 parent 6ca04f9 commit 275934a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uploadx/src/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Uploader implements UploaderOptions {
if (s !== this._status) {
this._status = s;
this.notifyState();
if (s === 'cancelled' || s === 'paused') {
if (this.abort && (s === 'cancelled' || s === 'paused')) {
this.abort();
}
}
Expand Down

0 comments on commit 275934a

Please sign in to comment.