Skip to content

Commit

Permalink
Allow console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Oct 24, 2023
1 parent 9da4234 commit 9798a7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Resources/Public/JavaScript/PageView/Metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class dlfMetadata {
this.updateSectionVisibility();
}
} catch (error) {
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
console.warn("Could not fetch additional metadata:", error);
}
}
Expand Down
2 changes: 2 additions & 0 deletions Resources/Public/JavaScript/PageView/PageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ dlfViewer.prototype.loadPages = function (visiblePages) {
for (const page of visiblePages) {
const file = this.docController.findFileByKind(page.pageNo, 'images');
if (file === undefined) {
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
console.warn(`No image file found on page ${page.pageNo}`);
continue;
}
Expand Down Expand Up @@ -777,6 +778,7 @@ dlfViewer.prototype.initLoadFulltexts = function (visiblePages) {
this.fulltextsLoaded_[key] = dlfFullTextUtils.fetchFullTextDataFromServer(fulltext.url, image, xOffset);
}
} else {
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
console.warn("No fulltext file found");
}

Expand Down

0 comments on commit 9798a7c

Please sign in to comment.