Skip to content

Commit 65a48ae

Browse files
committed
#436: Cannot Drag and Drop Image to Upload Area in Banner, Slide in Safari, IE11 - Eslint fixes
1 parent 5da7ff0 commit 65a48ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/image-uploader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ define([
8585
* {@inheritDoc}
8686
*/
8787
isFileAllowed: function () {
88-
var result = this._super();
88+
var result = this._super(),
89+
allowedExtensions = this.getAllowedFileExtensionsInCommaDelimitedFormat();
8990

9091
if (!result.passed && result.rule === 'validate-file-type') {
91-
result.message += (' ' + this.translations.allowedFileTypes + ': ' + this.getAllowedFileExtensionsInCommaDelimitedFormat() + '.');
92+
result.message += ' ' + this.translations.allowedFileTypes + ': ' + allowedExtensions + '.';
9293
}
9394
return result;
9495
},

0 commit comments

Comments
 (0)