Small style tweaks

This commit is contained in:
Feross Aboukhadijeh
2016-05-11 22:12:44 +02:00
parent b1a7543d37
commit bfd09a058e
2 changed files with 6 additions and 5 deletions

View File

@@ -12,8 +12,7 @@ function checkForVLC (cb) {
vlcCommand((err) => cb(!err))
}
// Finds if VLC is installed on Mac, Windows, or Linux.
// Uses child_process.spawn() to return a ChildProcess object
// Spawns VLC with child_process.spawn() to return a ChildProcess object
// Calls back with (err, childProcess)
function spawn (args, cb) {
vlcCommand(function (err, vlcPath) {

View File

@@ -9,6 +9,8 @@ var windows = module.exports = {
var electron = require('electron')
var app = electron.app
var config = require('../config')
var menu = require('./menu')
var tray = require('./tray')
@@ -68,7 +70,7 @@ function createWebTorrentHiddenWindow () {
// Prevent killing the WebTorrent process
win.on('close', function (e) {
if (!electron.app.isQuitting) {
if (!app.isQuitting) {
e.preventDefault()
win.hide()
}
@@ -116,8 +118,8 @@ function createMainWindow () {
win.on('close', function (e) {
if (process.platform !== 'darwin' && !tray.hasTray()) {
electron.app.quit()
} else if (!electron.app.isQuitting) {
app.quit()
} else if (!app.isQuitting) {
e.preventDefault()
win.hide()
win.send('dispatch', 'backToList')