Skip to content

Commit

Permalink
Update core.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube authored Oct 23, 2024
1 parent 097bdc2 commit 02b5557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js&css/web-accessible/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ document.addEventListener('it-message-from-extension', function () {
if (ImprovedTube.storage.player_forced_playback_speed === true && isFinite(Number(ImprovedTube.storage.player_playback_speed))) {
ImprovedTube.playbackSpeed (Number(ImprovedTube.storage.player_playback_speed)); //new
ImprovedTube.elements.player.setPlaybackRate(Number(ImprovedTube.storage.player_playback_speed));
ImprovedTube.elements.player.querySelector('video').playbackRate = Number(ImprovedTube.storage.player_playback_speed);
// ImprovedTube.elements.player.querySelector('video').playbackRate = Number(ImprovedTube.storage.player_playback_speed.toFixed(2));
} else if (ImprovedTube.storage.player_forced_playback_speed === false) {
ImprovedTube.elements.player.setPlaybackRate(1);
ImprovedTube.elements.player.querySelector('video').playbackRate = 1;
Expand Down

0 comments on commit 02b5557

Please sign in to comment.