Fix method definition

This commit is contained in:
John Factotum
2022-11-04 10:49:22 +00:00
committed by GitHub
parent bc22699bab
commit 6b553eb89c
+6 -6
View File
@@ -703,12 +703,6 @@ export class EPUB {
else this.metadata[key] = [value]
}))
this.getCover = async () => {
const cover = this.resources?.cover
return cover?.href
? new Blob([await this.loadBlob(cover.href)], { type: cover.mediaType })
: null
}
return this
}
async loadDocument(item) {
@@ -736,6 +730,12 @@ export class EPUB {
isExternal(uri) {
return isExternal(uri)
}
async getCover() {
const cover = this.resources?.cover
return cover?.href
? new Blob([await this.loadBlob(cover.href)], { type: cover.mediaType })
: null
}
async getCalibreBookmarks() {
const txt = await this.loadText('META-INF/calibre_bookmarks.txt')
const magic = 'encoding=json+base64:'