mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 05:13:01 +00:00
Fix avatar animation on hover when not logged in (#11349)
This commit is contained in:
parent
8df0022e66
commit
4fa6472523
|
@ -178,7 +178,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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue