|
@@ -1,5 +1,4 @@
|
|
|
const {app, BrowserWindow} = require('electron')
|
|
|
-const e = require('express')
|
|
|
const path = require('path')
|
|
|
|
|
|
function createWindow () {
|
|
@@ -44,7 +43,6 @@ function createWindow () {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
mainWindow.webContents.session.setDevicePermissionHandler((details) => {
|
|
|
if (details.deviceType === 'usb' && details.origin === 'file://') {
|
|
|
if (!grantedDeviceThroughPermHandler) {
|