Skip to content

Commit

Permalink
Merge pull request #18282 from Snuffleupagus/issue-18274
Browse files Browse the repository at this point in the history
Don't save modified documents, when running tests, upon closing the viewer (issue 18274)
  • Loading branch information
timvandermeij authored Jun 18, 2024
2 parents c521351 + 9e811b9 commit 0d8828f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,8 @@ const PDFViewerApplication = {
return;
}
if (
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
(typeof PDFJSDev === "undefined" ||
PDFJSDev.test("GENERIC && !TESTING")) &&
this.pdfDocument?.annotationStorage.size > 0 &&
this._annotationStorageModified
) {
Expand Down

0 comments on commit 0d8828f

Please sign in to comment.