EPUB: fixed unload func not added to section

Missed it for some reason
This commit is contained in:
John Factotum
2022-10-20 17:00:00 +00:00
committed by GitHub
parent 759a3b31a7
commit 6348ca4a9d
+1
View File
@@ -613,6 +613,7 @@ export class EPUB {
return { return {
id: this.resources.getItemByID(idref)?.href, id: this.resources.getItemByID(idref)?.href,
load: () => loader.loadItem(item), load: () => loader.loadItem(item),
unload: () => loader.unloadItem(item),
createDocument: () => this.loadDocument(item), createDocument: () => this.loadDocument(item),
size: this.getSize(item.href), size: this.getSize(item.href),
cfi: this.resources.cfis[index], cfi: this.resources.cfis[index],