mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3351 from jellyfin/fix-bookplayer-blank
Fix starting of book player with a blank page
This commit is contained in:
commit
ad1e8d3cd0
1 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ export class BookPlayer {
|
||||||
|
|
||||||
return rendition.display().then(() => {
|
return rendition.display().then(() => {
|
||||||
const epubElem = document.querySelector('.epub-container');
|
const epubElem = document.querySelector('.epub-container');
|
||||||
epubElem.style.display = 'none';
|
epubElem.style.opacity = '0';
|
||||||
|
|
||||||
this.bindEvents();
|
this.bindEvents();
|
||||||
|
|
||||||
|
@ -309,7 +309,7 @@ export class BookPlayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
epubElem.style.display = 'block';
|
epubElem.style.opacity = '';
|
||||||
rendition.on('relocated', (locations) => {
|
rendition.on('relocated', (locations) => {
|
||||||
this.progress = book.locations.percentageFromCfi(locations.start.cfi);
|
this.progress = book.locations.percentageFromCfi(locations.start.cfi);
|
||||||
Events.trigger(this, 'pause');
|
Events.trigger(this, 'pause');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue