From 37f63f696337330919087bb4e20d23368f985ea8 Mon Sep 17 00:00:00 2001 From: Froghut Date: Mon, 1 Apr 2019 15:34:01 +0200 Subject: [PATCH] add braces for clarification --- src/components/chromecast/chromecastplayer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/chromecast/chromecastplayer.js b/src/components/chromecast/chromecastplayer.js index cb63e9c4a8..5a174bc019 100644 --- a/src/components/chromecast/chromecastplayer.js +++ b/src/components/chromecast/chromecastplayer.js @@ -782,7 +782,9 @@ define(['appSettings', 'userSettings', 'playbackManager', 'connectionManager', ' ChromecastPlayer.prototype.volumeDown = function () { vol = this._castPlayer.session.receiver.volume.level; if (vol == null) + { vol = 0.5; + } vol -= 0.02; vol = Math.max(vol, 0); @@ -804,7 +806,9 @@ define(['appSettings', 'userSettings', 'playbackManager', 'connectionManager', ' ChromecastPlayer.prototype.volumeUp = function () { vol = this._castPlayer.session.receiver.volume.level; if (vol == null) + { vol = 0.5; + } vol += 0.02; vol = Math.min(vol, 1);