about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-19 09:18:23 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-07-19 09:18:23 +0200
commit4fa6472523d47e56f2458950af8d7ad9b5817a82 (patch)
treed5c565756f2b1aee6002e942cadd0b3b336f2e13 /app
parent8df0022e6607e9f18bd2ba8c27f17333f5385693 (diff)
Fix avatar animation on hover when not logged in (#11349)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/packs/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js
index 3135636cf..292441385 100644
--- a/app/javascript/packs/public.js
+++ b/app/javascript/packs/public.js
@@ -178,7 +178,7 @@ function main() {
     return ({ target }) => {
       const swapSrc = target.getAttribute(swapTo);
       //only change the img source if autoplay is off and the image src is actually different
-      if(target.getAttribute('data-autoplay') === 'false' && target.src !== swapSrc) {
+      if(target.getAttribute('data-autoplay') !== 'true' && target.src !== swapSrc) {
         target.src = swapSrc;
       }
     };