mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add braces for clarification
This commit is contained in:
parent
732d8b5e26
commit
37f63f6963
@ -782,7 +782,9 @@ define(['appSettings', 'userSettings', 'playbackManager', 'connectionManager', '
|
|||||||
ChromecastPlayer.prototype.volumeDown = function () {
|
ChromecastPlayer.prototype.volumeDown = function () {
|
||||||
vol = this._castPlayer.session.receiver.volume.level;
|
vol = this._castPlayer.session.receiver.volume.level;
|
||||||
if (vol == null)
|
if (vol == null)
|
||||||
|
{
|
||||||
vol = 0.5;
|
vol = 0.5;
|
||||||
|
}
|
||||||
vol -= 0.02;
|
vol -= 0.02;
|
||||||
vol = Math.max(vol, 0);
|
vol = Math.max(vol, 0);
|
||||||
|
|
||||||
@ -804,7 +806,9 @@ define(['appSettings', 'userSettings', 'playbackManager', 'connectionManager', '
|
|||||||
ChromecastPlayer.prototype.volumeUp = function () {
|
ChromecastPlayer.prototype.volumeUp = function () {
|
||||||
vol = this._castPlayer.session.receiver.volume.level;
|
vol = this._castPlayer.session.receiver.volume.level;
|
||||||
if (vol == null)
|
if (vol == null)
|
||||||
|
{
|
||||||
vol = 0.5;
|
vol = 0.5;
|
||||||
|
}
|
||||||
vol += 0.02;
|
vol += 0.02;
|
||||||
vol = Math.min(vol, 1);
|
vol = Math.min(vol, 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user