diff --git a/main.js b/main.js index 26d2611..57e805a 100644 --- a/main.js +++ b/main.js @@ -23,7 +23,6 @@ function createWindow () backgroundColor: '#312450', webPreferences: { nodeIntegration: true, - enableRemoteModule: true, contextIsolation: false, }, }); diff --git a/renderer.js b/renderer.js index e95b5ab..fe557ee 100644 --- a/renderer.js +++ b/renderer.js @@ -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