1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fixed sonarcloud code smell

This commit is contained in:
minigt 2023-08-18 22:46:34 -03:00
parent a15af2095e
commit 04c3afd9e5

View file

@ -148,15 +148,12 @@ let _supportsCssAnimation;
let _supportsCssAnimationWithPrefix; let _supportsCssAnimationWithPrefix;
function supportsCssAnimation(allowPrefix) { function supportsCssAnimation(allowPrefix) {
// TODO: Assess if this is still needed, as all of our targets should natively support CSS animations. // TODO: Assess if this is still needed, as all of our targets should natively support CSS animations.
if (allowPrefix) { if (allowPrefix && (_supportsCssAnimationWithPrefix === true || _supportsCssAnimationWithPrefix === false)) {
if (_supportsCssAnimationWithPrefix === true || _supportsCssAnimationWithPrefix === false) {
return _supportsCssAnimationWithPrefix; return _supportsCssAnimationWithPrefix;
} }
} else {
if (_supportsCssAnimation === true || _supportsCssAnimation === false) { if (_supportsCssAnimation === true || _supportsCssAnimation === false) {
return _supportsCssAnimation; return _supportsCssAnimation;
} }
}
let animation = false; let animation = false;
const domPrefixes = ['Webkit', 'O', 'Moz']; const domPrefixes = ['Webkit', 'O', 'Moz'];