1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

fix electron app bug

This commit is contained in:
Rokt33r
2015-06-12 17:50:30 +09:00
parent bcec0c665a
commit 9e635715c5

18
main.js
View File

@@ -8,9 +8,9 @@ require('crash-reporter').start()
// be closed automatically when the javascript object is GCed.
var mainWindow = null
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit()
})
// app.on('window-all-closed', function () {
// if (process.platform !== 'darwin') app.quit()
// })
var clipboard = require('clipboard')
@@ -27,19 +27,7 @@ app.on('ready', function () {
mainWindow.show()
})
mainWindow = new BrowserWindow({
width: 800,
height: 600,
'web-preferences': {
'overlay-scrollbars': true
}
})
mainWindow.loadUrl('file://' + __dirname + '/electron_build/index.html')
makeNewMainWindow()
// mainWindow.openDevTools()
var globalShortcut = require('global-shortcut')