Fix avatar animation on hover when not logged in (#11349)
parent
ee3ab5a51d
commit
026f3a9d2d
|
@ -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…
Reference in New Issue