From 2f7e652e2808571f86ee1c32fbc1ed4266a0d8eb Mon Sep 17 00:00:00 2001 From: Jayden <7265189+jayktaylor@users.noreply.github.com> Date: Wed, 17 Jul 2024 18:04:52 +0100 Subject: [PATCH] fix: incorrect conditions for shouldShowAnimation (#165) --- modules/ext.tabberNeue/ext.tabberNeue.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ext.tabberNeue/ext.tabberNeue.js b/modules/ext.tabberNeue/ext.tabberNeue.js index 769f4b5..496d107 100644 --- a/modules/ext.tabberNeue/ext.tabberNeue.js +++ b/modules/ext.tabberNeue/ext.tabberNeue.js @@ -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 ); }