electron-in-action/firesale

Drag and drop does not work on MacOS

Opened this issue · 0 comments

It appears that file.type is always empty for files with an .md or .markdown extension, so that the following always returns false:

const fileTypeIsSupported = (file) => {
    return ['text/plain', 'text/md'].includes(file.type);
};

Thus, the drop target always displays the red error color