diff --git a/app/assets/javascripts/discourse/app/instance-initializers/animated-images-pause-on-click.js b/app/assets/javascripts/discourse/app/instance-initializers/animated-images-pause-on-click.js index d358b21bb1a..a96aa5b8e4f 100644 --- a/app/assets/javascripts/discourse/app/instance-initializers/animated-images-pause-on-click.js +++ b/app/assets/javascripts/discourse/app/instance-initializers/animated-images-pause-on-click.js @@ -27,7 +27,9 @@ function _resumeAnimation(img) { } function animatedImgs() { - return document.querySelectorAll("img.animated:not(.manually-paused)"); + return document.querySelectorAll( + ".topic-post img.animated:not(.manually-paused)" + ); } export default {