Skip to content

Commit

Permalink
Merge pull request valor-software#904 from guanbo/options
Browse files Browse the repository at this point in the history
Update: setOptions
  • Loading branch information
Adrian Fâciu authored Oct 22, 2017
2 parents 9d0408e + ccee135 commit 0d97b76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/file-upload/file-uploader.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export class FileUploader {
public setOptions(options: FileUploaderOptions): void {
this.options = Object.assign(this.options, options);

this.authToken = options.authToken;
this.authTokenHeader = options.authTokenHeader || 'Authorization';
this.autoUpload = options.autoUpload;
this.authToken = this.options.authToken;
this.authTokenHeader = this.options.authTokenHeader || 'Authorization';
this.autoUpload = this.options.autoUpload;
this.options.filters.unshift({ name: 'queueLimit', fn: this._queueLimitFilter });

if (this.options.maxFileSize) {
Expand Down

0 comments on commit 0d97b76

Please sign in to comment.