Remove remote modules usage
This commit is contained in:
parent
a2800ec0fe
commit
39ffc6583e
1
main.js
1
main.js
|
@ -23,7 +23,6 @@ function createWindow ()
|
|||
backgroundColor: '#312450',
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
enableRemoteModule: true,
|
||||
contextIsolation: false,
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
const serialport = require('@serialport/bindings-cpp')
|
||||
const usb = require('usb')
|
||||
const {ipcRenderer} = require("electron")
|
||||
const {remote} = require('electron')
|
||||
const { shell } = require('electron')
|
||||
|
||||
var basetuneList = [];
|
||||
|
@ -580,12 +579,6 @@ function openFileMgr()
|
|||
}
|
||||
}
|
||||
|
||||
function quit()
|
||||
{
|
||||
let w = remote.getCurrentWindow();
|
||||
w.close();
|
||||
}
|
||||
|
||||
async function checkForUpdates()
|
||||
{
|
||||
//Adds the current version number to the Titlebar
|
||||
|
|
Loading…
Reference in New Issue