feat: upload file

This commit is contained in:
cv
2021-06-06 22:25:23 +02:00
parent d4ee386cde
commit 560ae5be74
6 changed files with 107 additions and 19 deletions
+2 -1
View File
@@ -7,10 +7,10 @@ const {
dialog,
ipcMain,
shell,
Notification,
} = require('electron');
const path = require('path');
const { electron } = require('process');
const { Notification } = require('electron');
const env = process.env.NODE_ENV || 'prod';
@@ -100,6 +100,7 @@ function createWindow() {
// TODO: what are recommended alternatives to node integration?
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true,
},
});