commit aae01f0487a58435c0199121593b6caf96d021c5
parent 12f1d3108666cb1b35c06530ba5eccbef2174d4d
Author: unitehenry <unitehenry@gmail.com>
Date: Thu, 31 Oct 2019 13:21:54 -0400
extension hot fix
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
@@ -1,7 +1,7 @@
{
"name": "@striven-erp/striven-editor",
"private": false,
- "version": "2.3.0",
+ "version": "2.3.1",
"description": "The lightweight Striven WYSIWYG editor built with pure JavaScript.",
"main": "./dist",
"scripts": {
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -1085,7 +1085,7 @@ export default class StrivenEditor {
}
validateFile(file) {
- const extension = (file && file.type.split('/').pop());
+ const extension = (file && file.name.split('.').pop());
if (extension) {
return this.options.extensions.includes(`.${extension}`);
} else {