We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9265e75 commit 19c6744Copy full SHA for 19c6744
1 file changed
epub.js
@@ -675,6 +675,8 @@ class Resources {
675
&& item.mediaType.startsWith('image'))
676
?? this.getItemByHref(this.guide
677
?.find(ref => ref.type.includes('cover'))?.href)
678
+ // last resort: first image in manifest
679
+ ?? this.manifest.find(item => item.mediaType.startsWith('image'))
680
681
this.cfis = CFI.fromElements($$itemref)
682
}
0 commit comments