Skip to content
Snippets Groups Projects
Commit 30eda4b9 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Add check

parent 171168f1
No related branches found
No related tags found
No related merge requests found
Pipeline #202753 passed
......@@ -384,7 +384,7 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) {
* @returns {boolean}
*/
checkFileType(file) {
if (this.allowedMimeTypes === '') return true;
if (this.allowedMimeTypes === '' || !file.type) return true;
// check if file is allowed
const [fileMainType, fileSubType] = file.type.split('/');
const mimeTypes = this.allowedMimeTypes.split(',');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment