Skip to content

Commit

Permalink
_getOutlinePath(): Abort if no outline
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Nov 26, 2024
1 parent 08fc5e3 commit 4adfaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/epub/epub-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class EPUBView extends DOMView<EPUBViewState, EPUBViewData> {
let bestPath: number[] = [];
let bestTarget: HTMLElement | null = null;

if (!this.flow.startRange) {
if (!this.flow.startRange || !this._outline) {
return bestPath;
}

Expand Down

0 comments on commit 4adfaf3

Please sign in to comment.