eb5a291c8b/src/renderer/lib/migrations.js (L219) cause external player to be a empty string instead of a null one
This commit is contained in:
Hinara
2020-07-25 02:39:09 +02:00
committed by GitHub
parent c150d22c97
commit f88d5426c9

View File

@@ -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 == null) return vlcCommand(cb)
if (playerPath.length === 0) return vlcCommand(cb)
process.nextTick(() => cb(null))
}
function spawn (playerPath, url, title) {
if (playerPath != null) return spawnExternal(playerPath, [url])
if (playerPath.length !== 0) return spawnExternal(playerPath, [url])
// Try to find and use VLC if external player is not specified
vlcCommand((err, vlcPath) => {