fix: modernify code (#2068)
* fix: modernify code * standard fix * fixes
This commit is contained in:
committed by
GitHub
parent
c36e43eaa3
commit
e42a515199
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user