Skip to content

Commit

Permalink
stay on current resource if result is in the same, and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
aferditamuriqi committed Nov 18, 2020
1 parent b5c6db9 commit d375935
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@d-i-t-a/reader",
"version": "1.4.0-alpha.4",
"version": "1.4.0-alpha.5",
"description": "A viewer application for EPUB files.",
"repository": "https://github.com/d-i-t-a/R2D2BC",
"license": "Apache-2.0",
Expand Down
8 changes: 4 additions & 4 deletions src/modules/search/SearchModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ export default class SearchModule implements ReaderModule {
}
}
if (item != undefined) {
// if (currentLocation === absolutehref) {
// this.jumpToMark(filteredIndex);
// } else {
if (currentLocation === absolutehref) {
this.jumpToMark(filteredIndex);
} else {
let locations: Locations = {
progression: 0
}
Expand All @@ -333,7 +333,7 @@ export default class SearchModule implements ReaderModule {
setTimeout(() => {
this.searchAndPaintChapter(item.textMatch, filteredIndex, async () => { })
}, 300);
// }
}
}
}

Expand Down

0 comments on commit d375935

Please sign in to comment.