mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix prefer for-of errors
This commit is contained in:
parent
ef719c45f4
commit
1b03cd79eb
11 changed files with 26 additions and 47 deletions
|
@ -13,8 +13,8 @@ function calculateOffset(textarea) {
|
|||
const props = ['paddingTop', 'paddingBottom'];
|
||||
let offset = 0;
|
||||
|
||||
for (let i = 0; i < props.length; i++) {
|
||||
offset += parseInt(style[props[i]], 10);
|
||||
for (const prop of props) {
|
||||
offset += parseInt(style[prop], 10);
|
||||
}
|
||||
return offset;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue