diff --git a/SignItVideosGallery.js b/SignItVideosGallery.js index a1d46c4..9e8b907 100644 --- a/SignItVideosGallery.js +++ b/SignItVideosGallery.js @@ -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' ); @@ -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 )