mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #4403 from thornbill/eslint-radix
Add eslint radix rule for parseInt
This commit is contained in:
commit
3a784ad928
47 changed files with 90 additions and 101 deletions
|
@ -683,7 +683,7 @@ class ChromecastPlayer {
|
|||
}
|
||||
|
||||
seek(position) {
|
||||
position = parseInt(position);
|
||||
position = parseInt(position, 10);
|
||||
|
||||
position = position / 10000000;
|
||||
|
||||
|
|
|
@ -261,7 +261,7 @@ export class PdfPlayer {
|
|||
for (const page of pages) {
|
||||
if (!this.pages[page]) {
|
||||
this.pages[page] = document.createElement('canvas');
|
||||
this.renderPage(this.pages[page], parseInt(page.slice(4)));
|
||||
this.renderPage(this.pages[page], parseInt(page.slice(4), 10));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -254,7 +254,7 @@ class Manager {
|
|||
if (typeof cmd.When === 'string') {
|
||||
cmd.When = new Date(cmd.When);
|
||||
cmd.EmittedAt = new Date(cmd.EmittedAt);
|
||||
cmd.PositionTicks = cmd.PositionTicks ? parseInt(cmd.PositionTicks) : null;
|
||||
cmd.PositionTicks = cmd.PositionTicks ? parseInt(cmd.PositionTicks, 10) : null;
|
||||
}
|
||||
|
||||
if (!this.isSyncPlayEnabled()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue