Skip to content

Commit 9e63571

Browse files
committed
fix electron app bug
1 parent bcec0c6 commit 9e63571

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

main.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ require('crash-reporter').start()
88
// be closed automatically when the javascript object is GCed.
99
var mainWindow = null
1010

11-
app.on('window-all-closed', function () {
12-
if (process.platform !== 'darwin') app.quit()
13-
})
11+
// app.on('window-all-closed', function () {
12+
// if (process.platform !== 'darwin') app.quit()
13+
// })
1414

1515
var clipboard = require('clipboard')
1616

@@ -27,19 +27,7 @@ app.on('ready', function () {
2727
mainWindow.show()
2828
})
2929

30-
mainWindow = new BrowserWindow({
31-
width: 800,
32-
height: 600,
33-
'web-preferences': {
34-
'overlay-scrollbars': true
35-
}
36-
})
37-
38-
mainWindow.loadUrl('file://' + __dirname + '/electron_build/index.html')
39-
4030
makeNewMainWindow()
41-
// mainWindow.openDevTools()
42-
4331

4432
var globalShortcut = require('global-shortcut')
4533

0 commit comments

Comments
 (0)