mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-23 16:06:45 +00:00
fix: incorrect conditions for shouldShowAnimation (#165)
This commit is contained in:
parent
2037cf38eb
commit
2f7e652e28
|
@ -25,8 +25,8 @@ class TabberAction {
|
|||
*/
|
||||
static shouldShowAnimation() {
|
||||
return (
|
||||
!window.matchMedia( '(prefers-reduced-motion: reduce)' ).matches ||
|
||||
!config.enableAnimation
|
||||
!window.matchMedia( '(prefers-reduced-motion: reduce)' ).matches &&
|
||||
config.enableAnimation
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue