Skip to content

Commit

Permalink
refactor : replaced video with iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
kabir-afk committed Jul 4, 2024
1 parent 27260e3 commit b5ea8a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions SignItVideosGallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ SignItVideosGallery.prototype.switchVideo = function ( newIndex ) {
this.$videos[ this.currentIndex ].hide();
this.currentIndex = newIndex;
this.$videos[ this.currentIndex ].show();
$currentVideo = this.$videos[ this.currentIndex ].children( 'video' )[ 0 ];
$currentVideo = this.$videos[ this.currentIndex ].children( 'iframe' )[ 0 ];

$( async function () {
param = await browser.storage.local.get( 'twospeed' );
Expand All @@ -84,9 +84,6 @@ SignItVideosGallery.prototype.switchVideo = function ( newIndex ) {
}
})

// After switching, play
$currentVideo.play();

// Arrows disables when on edges
this.currentIndex === 0 ?
this.previousVideoButton.setDisabled( true )
Expand Down

0 comments on commit b5ea8a2

Please sign in to comment.