mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add eslint radix rule for parseInt
This commit is contained in:
parent
9e784034d3
commit
329cf77c81
42 changed files with 90 additions and 91 deletions
|
@ -70,7 +70,7 @@ class AppSettings {
|
|||
// return a huge number so that it always direct plays
|
||||
return 150000000;
|
||||
} else {
|
||||
return parseInt(this.get(key) || '0') || 1500000;
|
||||
return parseInt(this.get(key) || '0', 10) || 1500000;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ class AppSettings {
|
|||
}
|
||||
|
||||
const defaultValue = 320000;
|
||||
return parseInt(this.get('maxStaticMusicBitrate') || defaultValue.toString()) || defaultValue;
|
||||
return parseInt(this.get('maxStaticMusicBitrate') || defaultValue.toString(), 10) || defaultValue;
|
||||
}
|
||||
|
||||
maxChromecastBitrate(val) {
|
||||
|
@ -89,7 +89,7 @@ class AppSettings {
|
|||
}
|
||||
|
||||
val = this.get('chromecastBitrate1');
|
||||
return val ? parseInt(val) : null;
|
||||
return val ? parseInt(val, 10) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -348,7 +348,7 @@ export class UserSettings {
|
|||
return this.set('skipBackLength', val.toString());
|
||||
}
|
||||
|
||||
return parseInt(this.get('skipBackLength') || '10000');
|
||||
return parseInt(this.get('skipBackLength') || '10000', 10);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -361,7 +361,7 @@ export class UserSettings {
|
|||
return this.set('skipForwardLength', val.toString());
|
||||
}
|
||||
|
||||
return parseInt(this.get('skipForwardLength') || '30000');
|
||||
return parseInt(this.get('skipForwardLength') || '30000', 10);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue