Reader: allow opening unzipped EPUBs

This commit is contained in:
John Factotum
2022-10-27 17:41:26 +00:00
committed by GitHub
parent 60bebc39b4
commit 2a5ccb93d9
3 changed files with 45 additions and 12 deletions
+1 -1
View File
@@ -604,7 +604,7 @@ export class EPUB {
})
const loader = new Loader({
loadText: this.loadText,
loadBlob: uri => this.loadBlob(uri)
loadBlob: uri => Promise.resolve(this.loadBlob(uri))
.then(this.#encryption.getDecoder(uri)),
resources: this.resources,
})