Merge pull request #9 from karniv00l/dependencies
Update all dependencies, refresh list of ports on USB attach / detach
This commit is contained in:
commit
b45045511a
20
main.js
20
main.js
|
@ -17,9 +17,23 @@ var teensyLoaderErr = ""
|
|||
function createWindow () {
|
||||
// Create the browser window.
|
||||
win = new BrowserWindow({
|
||||
width: 800, height: 600, backgroundColor: '#312450',
|
||||
webPreferences: {nodeIntegration: true}
|
||||
})
|
||||
width: 800,
|
||||
height: 600,
|
||||
backgroundColor: '#312450',
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
enableRemoteModule: true,
|
||||
},
|
||||
});
|
||||
|
||||
// auto hide menu bar (Win, Linux)
|
||||
win.setMenuBarVisibility(false);
|
||||
win.setAutoHideMenuBar(true);
|
||||
|
||||
// remove completely when app is packaged (Win, Linux)
|
||||
if (app.isPackaged) {
|
||||
win.removeMenu();
|
||||
}
|
||||
|
||||
// and load the index.html of the app.
|
||||
win.loadFile('index.html')
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -18,15 +18,15 @@
|
|||
},
|
||||
"author": "Josh Stewart",
|
||||
"email": "sales@speeduino.com",
|
||||
"license": "ISC",
|
||||
"license": "GPL-3.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/speeduino/SpeedyLoader/issues"
|
||||
},
|
||||
"homepage": "https://github.com/speeduino/SpeedyLoader",
|
||||
"devDependencies": {
|
||||
"electron": "^4.0.0",
|
||||
"electron-packager": "^14.0.0",
|
||||
"electron-rebuild": "^1.8.5"
|
||||
"electron": "^11.2.0",
|
||||
"electron-packager": "^15.2.0",
|
||||
"electron-rebuild": "^2.3.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"electron-dl": "^1.14.0",
|
||||
|
|
|
@ -520,5 +520,7 @@ window.onload = function () {
|
|||
refreshSerialPorts();
|
||||
checkForUpdates();
|
||||
|
||||
usb.on('attach', refreshSerialPorts);
|
||||
usb.on('detach', refreshSerialPorts);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue