Skip to content

Commit 5dc9f12

Browse files
committed
Yet more debug logging for EPUB race condition
1 parent 9193ea1 commit 5dc9f12

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

code/book.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,9 @@ export class Book extends EventTarget {
593593
this.dispatchEvent(new BookProgressEvent(this, evt.totalPages, evt.message));
594594
});
595595

596+
if (Params['debugFetch'] === 'true') {
597+
console.log(`debugFetch: Calling BookBinder.start()`);
598+
}
596599
// Wait for its decompressing implementation to be loaded and ports connected.
597600
await bookBinder.start();
598601
this.#bookBinder = bookBinder;

code/epub/epub-book-binder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export class EPUBBookBinder extends BookBinder {
335335
/** @private */
336336
parseOPF_() {
337337
assert(this.fileMap_.has(this.opfFilename_),
338-
`EPUB archive file did not have a file named '${this.opfFilename_}`);
338+
`EPUB archive file did not have a file named '${this.opfFilename_}'`);
339339

340340
const lastSlash = this.opfFilename_.lastIndexOf('/');
341341
const rootDir = lastSlash === -1 ? '' : this.opfFilename_.substr(0, lastSlash + 1);

0 commit comments

Comments
 (0)