mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add parseInt radix
This commit is contained in:
parent
48886918d3
commit
6ef3be136a
2 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ function getTextStyles(settings, preview) {
|
|||
}
|
||||
|
||||
if (!preview) {
|
||||
const pos = parseInt(settings.verticalPosition);
|
||||
const pos = parseInt(settings.verticalPosition, 10);
|
||||
const lineHeight = 1.35; // FIXME: It is better to read this value from element
|
||||
const line = Math.abs(pos * lineHeight);
|
||||
if (pos < 0) {
|
||||
|
@ -108,7 +108,7 @@ function getWindowStyles(settings, preview) {
|
|||
const list = [];
|
||||
|
||||
if (!preview) {
|
||||
const pos = parseInt(settings.verticalPosition);
|
||||
const pos = parseInt(settings.verticalPosition, 10);
|
||||
if (pos < 0) {
|
||||
list.push({ name: 'top', value: '' });
|
||||
list.push({ name: 'bottom', value: '0' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue