open data files using open dialog in electron + drag & drop in electron without uploading

This commit is contained in:
Jan Prochazka
2021-01-31 09:21:54 +01:00
parent 5c7a011efb
commit 18bf6e5979
5 changed files with 83 additions and 13 deletions

View File

@@ -36,7 +36,7 @@ export function useUploadFiles() {
console.log('FILE', file);
if (electron && canOpenByElectron(file.path)) {
if (electron && canOpenByElectron(file.path, extensions)) {
openElectronFileCore(file.path);
return;
}