This commit is contained in:
Feross Aboukhadijeh
2018-08-28 19:38:25 -07:00
parent 77c497e984
commit 10b4450214
34 changed files with 57 additions and 57 deletions

View File

@@ -4,7 +4,7 @@ module.exports = {
setBadge
}
const {app, Menu} = require('electron')
const { app, Menu } = require('electron')
const dialog = require('./dialog')
const log = require('./log')

View File

@@ -52,7 +52,7 @@ function spawnExternal (playerPath, args) {
playerPath += `/Contents/MacOS/${path.basename(playerPath, '.app')}`
}
proc = cp.spawn(playerPath, args, {stdio: 'ignore'})
proc = cp.spawn(playerPath, args, { stdio: 'ignore' })
// If it works, close the modal after a second
const closeModalTimeout = setTimeout(() =>

View File

@@ -2,7 +2,7 @@ const chokidar = require('chokidar')
const log = require('./log')
class FolderWatcher {
constructor ({window, state}) {
constructor ({ window, state }) {
this.window = window
this.state = state
this.torrentsFolderPath = null

View File

@@ -74,7 +74,7 @@ function init () {
isReady = true
const state = results.state
windows.main.init(state, {hidden: hidden})
windows.main.init(state, { hidden: hidden })
windows.webtorrent.init()
menu.init()
@@ -86,7 +86,7 @@ function init () {
// Report uncaught exceptions
process.on('uncaughtException', (err) => {
console.error(err)
const error = {message: err.message, stack: err.stack}
const error = { message: err.message, stack: err.stack }
windows.main.dispatch('uncaughtError', 'main', error)
})
}
@@ -131,7 +131,7 @@ function delayedInit (state) {
const dock = require('./dock')
const updater = require('./updater')
const FolderWatcher = require('./folder-watcher')
const folderWatcher = new FolderWatcher({window: windows.main, state})
const folderWatcher = new FolderWatcher({ window: windows.main, state })
announcement.init()
dock.init()