fix: modernify code

This commit is contained in:
Diego Rodríguez Baquero
2021-10-10 13:49:13 -05:00
parent c36e43eaa3
commit 63b55df637
25 changed files with 146 additions and 164 deletions

View File

@@ -37,7 +37,7 @@ function init () {
win.loadURL(config.WINDOW_ABOUT)
win.once('ready-to-show', function () {
win.once('ready-to-show', () => {
win.show()
// No menu on the About window
// Hack: BrowserWindow removeMenu method not working on electron@7
@@ -45,7 +45,7 @@ function init () {
win.setMenuBarVisibility(false)
})
win.once('closed', function () {
win.once('closed', () => {
about.win = null
})
}