Skip to content
Snippets Groups Projects
Commit 30387bf1 authored by echicken's avatar echicken :chicken:
Browse files

For FileEntry.name, just return base if ext is empty.

parent 447c4421
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ function FileBase(dir) { ...@@ -96,7 +96,7 @@ function FileBase(dir) {
Object.defineProperty(FileEntry.prototype, "name", { Object.defineProperty(FileEntry.prototype, "name", {
enumerable: true, enumerable: true,
get: function() { get: function() {
return this.base+'.'+this.ext; return this.ext ? this.base+'.'+this.ext : this.base;
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment