Skip to content

Commit 4747497

Browse files
authored
fixed lastModified
1 parent 09fd404 commit 4747497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class File extends Blob {
1616
super(fileBits, options);
1717

1818
const modified = Number(options.lastModified);
19-
this.#lastModified = Number.isNaN(modified) ? modified : Date.now()
19+
this.#lastModified = Number.isNaN(modified) ? Date.now() : modified
2020
this.#name = fileName;
2121
}
2222

0 commit comments

Comments
 (0)