Skip to content

Commit

Permalink
fix kindle
Browse files Browse the repository at this point in the history
  • Loading branch information
ken107 committed Jan 16, 2024
1 parent 5170c0c commit a119154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/content/kindle-book.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ var readAloudDoc = new function() {
}

this.getTexts = function(index) {
for (; currentIndex<index; currentIndex++) $("#kr-chevron-right").click();
for (; currentIndex>index; currentIndex--) $("#kr-chevron-left").click();
for (; currentIndex<index; currentIndex++) simulateClick(document.getElementById("kr-chevron-right"))
for (; currentIndex>index; currentIndex--) simulateClick(document.getElementById("kr-chevron-left"))
return waitMillis(250).then(getTexts)
}

Expand Down

0 comments on commit a119154

Please sign in to comment.