Skip to content

Commit

Permalink
Merge pull request #4 from da-vaibhav/fix-multi-elements
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit authored Oct 9, 2024
2 parents b632574 + d8875e5 commit 390f28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extract-kindle-book.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function main() {
}

async function getPageNav() {
const footerText = await page.locator('ion-footer ion-title').textContent()
const footerText = await page.locator('ion-footer ion-title').first().textContent()
return parsePageNav(footerText)
}

Expand Down

0 comments on commit 390f28c

Please sign in to comment.