mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove bookplayer .default
This commit is contained in:
parent
3705a7c96f
commit
66ea2631b5
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ export class BookPlayer {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
import('epubjs').then(({default: epubjs}) => {
|
import('epubjs').then(({default: epubjs}) => {
|
||||||
let downloadHref = apiClient.getItemDownloadUrl(item.Id);
|
let downloadHref = apiClient.getItemDownloadUrl(item.Id);
|
||||||
let book = epubjs.default(downloadHref, {openAs: 'epub'});
|
let book = epubjs(downloadHref, {openAs: 'epub'});
|
||||||
let rendition = book.renderTo(elem, {width: '100%', height: '97%'});
|
let rendition = book.renderTo(elem, {width: '100%', height: '97%'});
|
||||||
|
|
||||||
this._currentSrc = downloadHref;
|
this._currentSrc = downloadHref;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue