1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
Tobias Speicher 2022-04-21 18:42:42 +02:00
parent 6412156210
commit e0486e49c6
No known key found for this signature in database
GPG key ID: 2CF824BD810C3BDB
3 changed files with 4 additions and 4 deletions

View file

@ -263,7 +263,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.substr(4)));
this.renderPage(this.pages[page], parseInt(page.slice(4)));
}
}