Accept null value as playerPath
This commit is contained in:
parent
f88d5426c9
commit
0edeaa4d58
1 changed files with 2 additions and 2 deletions
|
|
@ -17,12 +17,12 @@ let proc = null
|
|||
function checkInstall (playerPath, cb) {
|
||||
// check for VLC if external player has not been specified by the user
|
||||
// otherwise assume the player is installed
|
||||
if (playerPath.length === 0) return vlcCommand(cb)
|
||||
if (!playerPath) return vlcCommand(cb)
|
||||
process.nextTick(() => cb(null))
|
||||
}
|
||||
|
||||
function spawn (playerPath, url, title) {
|
||||
if (playerPath.length !== 0) return spawnExternal(playerPath, [url])
|
||||
if (playerPath) return spawnExternal(playerPath, [url])
|
||||
|
||||
// Try to find and use VLC if external player is not specified
|
||||
vlcCommand((err, vlcPath) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue