Use object shorthand for properties

This commit is contained in:
Linus Unnebäck
2020-04-26 15:14:36 +01:00
parent cf0cf79440
commit 81b3d64f42
12 changed files with 25 additions and 25 deletions

View File

@@ -81,7 +81,7 @@ function init () {
isReady = true
const state = results.state
windows.main.init(state, { hidden: hidden })
windows.main.init(state, { hidden })
windows.webtorrent.init()
menu.init()

View File

@@ -235,8 +235,8 @@ function init () {
} else {
// Queue message for webtorrent window, it hasn't finished loading yet
messageQueueMainToWebTorrent.push({
name: name,
args: args
name,
args
})
log('webtorrent: queueing %s', name)
}