Replace var declarations with let declarations (#576)

* Replace var declaration with let declaration
This commit is contained in:
Liam Swayne
2023-12-28 23:50:48 -05:00
committed by GitHub
parent 79913d4c17
commit 455f78b178
3 changed files with 7 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ const schema = {
};
let syncing = false;
var state = {}
let state = {}
const store = new Store({ schema });
console.log(store);
@@ -384,7 +384,7 @@ const createWindow = (tab = 'chat.html') => {
firstRun = false;
// Create splash screen
var splash = new BrowserWindow({width: 400, height: 400, transparent: true, frame: false, alwaysOnTop: true});
let splash = new BrowserWindow({width: 400, height: 400, transparent: true, frame: false, alwaysOnTop: true});
splash.setOpacity(1.0);
splash.setBackgroundColor('#d16b4e');
splash.loadFile('splash.html');