Skip to content

Commit

Permalink
fixed lastModified
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting committed Jun 10, 2021
1 parent 09fd404 commit 4747497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class File extends Blob {
super(fileBits, options);

const modified = Number(options.lastModified);
this.#lastModified = Number.isNaN(modified) ? modified : Date.now()
this.#lastModified = Number.isNaN(modified) ? Date.now() : modified
this.#name = fileName;
}

Expand Down

0 comments on commit 4747497

Please sign in to comment.