Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit 4a5c8b1

Browse files
committed
fixed empty extension bug
1 parent 71fce1b commit 4a5c8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function getExtension (name) {
2929
if (indexOfExtension !== -1) {
3030
return name.substring(indexOfExtension + 1)
3131
} else {
32-
return null
32+
return 'txt'
3333
}
3434
}
3535

0 commit comments

Comments
 (0)