Skip to content

Commit

Permalink
Assign fulltextEntry directly
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Mar 28, 2023
1 parent 359b6a2 commit a135764
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Resources/Public/JavaScript/PageView/PageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,7 @@ dlfViewer.prototype.initLoadFulltexts = function (visiblePages) {
const fulltext = this.docController.findFileByKind(visiblePages[i].pageNo, 'fulltext');
if (fulltext !== undefined) {
if (!(key in this.fulltextsLoaded_) && dlfUtils.isFulltextDescriptor(fulltext)) {
fulltextEntry = dlfFullTextUtils.fetchFullTextDataFromServer(fulltext.url, image, xOffset);
this.fulltextsLoaded_[key] = fulltextEntry;
this.fulltextsLoaded_[key] = dlfFullTextUtils.fetchFullTextDataFromServer(fulltext.url, image, xOffset);
}
} else {
console.warn("No fulltext file found");
Expand Down

0 comments on commit a135764

Please sign in to comment.