Merge pull request #1260 from michaelgeorgeattard/master

Style clean up
This commit is contained in:
Feross Aboukhadijeh
2018-05-03 18:23:45 -07:00
committed by GitHub
3 changed files with 7 additions and 8 deletions

View File

@@ -39,13 +39,13 @@ function spawn (playerPath, url, title) {
function kill () {
if (!proc) return
log('Killing external player, pid ' + proc.pid)
log(`Killing external player, pid ${proc.pid}`)
proc.kill('SIGKILL') // kill -9
proc = null
}
function spawnExternal (playerPath, args) {
log('Running external media player:', playerPath + ' ' + args.join(' '))
log('Running external media player:', `${playerPath} ${args.join(' ')}`)
if (process.platform === 'darwin' && path.extname(playerPath) === '.app') {
// Mac: Use executable in packaged .app bundle