Update file.js

This commit is contained in:
Jimmy Wärting
2021-06-10 10:33:00 +02:00
committed by GitHub
parent 8d14e88040
commit 09fd40448a
+1 -1
View File
@@ -16,7 +16,7 @@ export default class File extends Blob {
super(fileBits, options);
const modified = Number(options.lastModified);
this.#lastModified = Number.isNaN(this.#lastModified) ? modified : Date.now()
this.#lastModified = Number.isNaN(modified) ? modified : Date.now()
this.#name = fileName;
}