mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
refs #207 Fixes lengthy assignment
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user