Skip to content

Commit

Permalink
Also require parseTree to be present, see #196
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 20, 2021
1 parent 57cad37 commit 8087016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ async function hyperlink(
// See https://github.com/Munter/hyperlink/issues/160
asset.ids = new Set();
asset.names = new Set();
if (asset.isLoaded) {
if (asset.isLoaded && asset.parseTree) {
for (const element of Array.from(
asset.parseTree.querySelectorAll('[id]')
)) {
Expand Down

0 comments on commit 8087016

Please sign in to comment.