Browse Source

Fix avatar animation on hover when not logged in (#11349)

master
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
4fa6472523
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/packs/public.js

+ 1
- 1
app/javascript/packs/public.js View File

@ -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;
}
};

Loading…
Cancel
Save