Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Apr 4, 2023
1 parent 1da31a7 commit 7aaf48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js&css/web-accessible/www.youtube.com/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ImprovedTube.autoplay = function () {
------------------------------------------------------------------------------*/

ImprovedTube.forcedPlayVideoFromTheBeginning = function () {
if (this.storage.forced_play_video_from_the_beginning === true) {
if (this.storage.forced_play_video_from_the_beginning === true && document.documentElement.dataset.pageType === 'video') {
this.elements.player.seekTo(0);
}
};
Expand Down

0 comments on commit 7aaf48f

Please sign in to comment.