1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

- cleanup root directory

- improve window behaviour
This commit is contained in:
Rokt33r
2015-09-11 17:20:16 +09:00
parent a3847ce1c9
commit 1fee2a846a
15 changed files with 129 additions and 153 deletions

22
main-window.js Normal file
View File

@@ -0,0 +1,22 @@
var BrowserWindow = require('browser-window')
var mainWindow = new BrowserWindow({
width: 1080,
height: 720,
// frame: false,
'web-preferences': {
'zoom-factor': 1.0,
'overlay-scrollbars': true
},
'standard-window': false
})
mainWindow.loadUrl('file://' + __dirname + '/browser/main/index.electron.html')
mainWindow.setVisibleOnAllWorkspaces(true)
mainWindow.webContents.on('new-window', function (e) {
e.preventDefault()
})
module.exports = mainWindow