From 8333f4893f17d1126744210f54078162f26f9097 Mon Sep 17 00:00:00 2001 From: Alberto Miranda Date: Fri, 24 Jun 2016 01:02:33 -0300 Subject: [PATCH] fixed js style --- renderer/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer/main.js b/renderer/main.js index bb105e2b..b928f4e0 100644 --- a/renderer/main.js +++ b/renderer/main.js @@ -167,7 +167,7 @@ function dispatch (action, ...args) { if (!['mediaMouseMoved', 'mediaTimeUpdate'].includes(action)) { console.log('dispatch: %s %o', action, args) } - if (action === 'toggleOpenInVlc') { + if (action === 'toggleOpenInVlc') { toggleOpenInVlc(args[0]) } if (action === 'onOpen') { @@ -1079,7 +1079,7 @@ function openPlayerFromActiveTorrent (torrentSummary, index, timeout, cb) { dispatch('vlcPlay') update() cb() - return; + return } // otherwise, play the video