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

Fix misleading array mutation issue from sonar

This commit is contained in:
Bill Thornton 2022-10-04 16:47:08 -04:00
parent f20a0e447c
commit 0b76f38f1e

View file

@ -183,9 +183,9 @@
width = height * (16.0 / 9.0);
}
return standardWidths.sort(function (a, b) {
return Math.abs(width - a) - Math.abs(width - b);
})[0];
standardWidths.sort((a, b) => Math.abs(width - a) - Math.abs(width - b));
return standardWidths[0];
}
/**