diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 3225870b7..143080e15 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -11392,7 +11392,9 @@ } Gallery.cleanupTimer(); current = Gallery.nodes.current; - current.loop = current.nodeName === 'VIDEO'; + if (current.nodeName === 'VIDEO') { + current.loop = true; + } $.rmClass(Gallery.nodes.buttons, 'gal-playing'); return Gallery.slideshow = false; }, diff --git a/builds/crx/script.js b/builds/crx/script.js index 43c6415bd..45e7bbe8c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11428,7 +11428,9 @@ } Gallery.cleanupTimer(); current = Gallery.nodes.current; - current.loop = current.nodeName === 'VIDEO'; + if (current.nodeName === 'VIDEO') { + current.loop = true; + } $.rmClass(Gallery.nodes.buttons, 'gal-playing'); return Gallery.slideshow = false; }, diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 1411978d4..c6605eb92 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -269,7 +269,7 @@ Gallery = return unless Gallery.slideshow Gallery.cleanupTimer() {current} = Gallery.nodes - current.loop = current.nodeName is 'VIDEO' + current.loop = true if current.nodeName is 'VIDEO' $.rmClass Gallery.nodes.buttons, 'gal-playing' Gallery.slideshow = false