fixed js style

This commit is contained in:
Alberto Miranda
2016-06-24 01:02:33 -03:00
parent f071965ae8
commit 8333f4893f

View File

@@ -167,7 +167,7 @@ function dispatch (action, ...args) {
if (!['mediaMouseMoved', 'mediaTimeUpdate'].includes(action)) { if (!['mediaMouseMoved', 'mediaTimeUpdate'].includes(action)) {
console.log('dispatch: %s %o', action, args) console.log('dispatch: %s %o', action, args)
} }
if (action === 'toggleOpenInVlc') { if (action === 'toggleOpenInVlc') {
toggleOpenInVlc(args[0]) toggleOpenInVlc(args[0])
} }
if (action === 'onOpen') { if (action === 'onOpen') {
@@ -1079,7 +1079,7 @@ function openPlayerFromActiveTorrent (torrentSummary, index, timeout, cb) {
dispatch('vlcPlay') dispatch('vlcPlay')
update() update()
cb() cb()
return; return
} }
// otherwise, play the video // otherwise, play the video