mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-20 14:42:05 +00:00
lint
This commit is contained in:
@ -133,9 +133,9 @@ function changeVolume(toIncrease, options) {
|
||||
const videoStream = $(".video-stream");
|
||||
// Apply volume change if valid
|
||||
const steps = (options.steps || 1) / 100;
|
||||
videoStream.volume = toIncrease ?
|
||||
videoStream.volume = (toIncrease ?
|
||||
Math.min(videoStream.volume + steps, 1) :
|
||||
Math.max(videoStream.volume - steps, 0).toFixed(2);
|
||||
Math.max(videoStream.volume - steps, 0)).toFixed(2);
|
||||
|
||||
// Save the new volume
|
||||
saveVolume(toPercent(videoStream.volume), options);
|
||||
|
||||
Reference in New Issue
Block a user