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

refs #207 Fixes lengthy assignment

This commit is contained in:
asmsuechan
2017-01-11 22:56:12 +09:00
parent 9179c199fe
commit 2b03e6e956

View File

@@ -6,10 +6,7 @@ const Config = require('electron-config')
const config = new Config()
var showMenu = process.platform !== 'win32'
let windowSize = { width: 1080, height: 720 }
if(config.get('windowsize') === undefined) config.set('windowsize', windowSize)
windowSize = config.get('windowsize')
let windowSize = config.get('windowsize') || { width: 1080, height: 720 }
let mainWindow = new BrowserWindow({
width: windowSize.width,