Used string template where it made sense.

This commit is contained in:
Michael George Attard
2017-10-26 21:27:57 +02:00
parent 7351133542
commit 424d171656
3 changed files with 7 additions and 6 deletions

View File

@@ -40,13 +40,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