Skip to content

Commit

Permalink
file type, lastModified (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock authored Jul 26, 2024
1 parent 98d833c commit 5160ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function fileOf(AbstractFile) {

class LocalFile extends AbstractFile {
constructor(file) {
super(file.name);
super(file.name, file.type, file.lastModified);
Object.defineProperty(this, "_", {value: file});
Object.defineProperty(this, "_url", {writable: true});
}
Expand Down

0 comments on commit 5160ab7

Please sign in to comment.