From 4faf30e0a1fe026aeacb41479dc0d6d5c789dde7 Mon Sep 17 00:00:00 2001 From: Rolando Guedes Date: Thu, 12 May 2016 15:31:28 +0100 Subject: [PATCH] Fix Cli Test fails: JavaScript Standard Style --- renderer/views/player.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/renderer/views/player.js b/renderer/views/player.js index 18ce3932..04f1b98b 100644 --- a/renderer/views/player.js +++ b/renderer/views/player.js @@ -13,14 +13,13 @@ var {dispatch, dispatcher} = require('../lib/dispatcher') // Handles volume change by wheel var handleVolumeWheel = function (e) { dispatch('changeVolume', (-e.deltaY | e.deltaX) / 500) -}; +} // Shows a streaming video player. Standard features + Chromecast + Airplay function Player (state) { // Show the video as large as will fit in the window, play immediately // If the video is on Chromecast or Airplay, show a title screen instead - var showVideo = state.playing.location === 'local'; - + var showVideo = state.playing.location === 'local' return hx`
${parts.map(function (part) { var style = { - left: (100 * part.start / fileProg.numPieces) + '%', - width: (100 * part.count / fileProg.numPieces) + '%' + left: (100 * part.start / fileProg.numPieces) + '%', + width: (100 * part.count / fileProg.numPieces) + '%' } return hx`
` })} -
+ ` }