electron-in-action / firesale

Mozilla Public License 2.0
76 stars 41 forks source link

Drag and drop does not work on MacOS #10

Open seanrussell opened 3 years ago

seanrussell commented 3 years ago

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