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

This commit is contained in:
ThibG 2019-07-19 09:18:23 +02:00 committed by Eugen Rochko
parent 6c4a196b53
commit ad0866804e

View File

@ -187,7 +187,7 @@ function main() {
return ({ target }) => { return ({ target }) => {
const swapSrc = target.getAttribute(swapTo); const swapSrc = target.getAttribute(swapTo);
//only change the img source if autoplay is off and the image src is actually different //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; target.src = swapSrc;
} }
}; };