mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
Fix starting of book player with a blank page
This commit is contained in:
parent
bc18ba9885
commit
9688b31de4
@ -284,7 +284,7 @@ export class BookPlayer {
|
||||
|
||||
return rendition.display().then(() => {
|
||||
const epubElem = document.querySelector('.epub-container');
|
||||
epubElem.style.display = 'none';
|
||||
epubElem.style.opacity = '0';
|
||||
|
||||
this.bindEvents();
|
||||
|
||||
@ -298,7 +298,7 @@ export class BookPlayer {
|
||||
}
|
||||
|
||||
this.loaded = true;
|
||||
epubElem.style.display = 'block';
|
||||
epubElem.style.opacity = '';
|
||||
rendition.on('relocated', (locations) => {
|
||||
this.progress = book.locations.percentageFromCfi(locations.start.cfi);
|
||||
Events.trigger(this, 'timeupdate');
|
||||
|
Loading…
Reference in New Issue
Block a user