mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
modify: add prefer-const rule and fix code
This commit is contained in:
@@ -6,9 +6,9 @@ const Config = require('electron-config')
|
||||
const config = new Config()
|
||||
|
||||
var showMenu = process.platform !== 'win32'
|
||||
let windowSize = config.get('windowsize') || { width: 1080, height: 720 }
|
||||
const windowSize = config.get('windowsize') || { width: 1080, height: 720 }
|
||||
|
||||
let mainWindow = new BrowserWindow({
|
||||
const mainWindow = new BrowserWindow({
|
||||
width: windowSize.width,
|
||||
height: windowSize.height,
|
||||
minWidth: 500,
|
||||
|
||||
Reference in New Issue
Block a user