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:
parent
f20a0e447c
commit
0b76f38f1e
1 changed files with 3 additions and 3 deletions
|
@ -183,9 +183,9 @@
|
||||||
width = height * (16.0 / 9.0);
|
width = height * (16.0 / 9.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return standardWidths.sort(function (a, b) {
|
standardWidths.sort((a, b) => Math.abs(width - a) - Math.abs(width - b));
|
||||||
return Math.abs(width - a) - Math.abs(width - b);
|
|
||||||
})[0];
|
return standardWidths[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue