From 9e811b97b12a1f9722a058ba2f009566fe30fbb9 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 18 Jun 2024 20:05:11 +0200 Subject: [PATCH] Don't save modified documents, when running tests, upon closing the viewer (issue 18274) --- web/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app.js b/web/app.js index c15aa2b02..d43538b63 100644 --- a/web/app.js +++ b/web/app.js @@ -919,7 +919,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 ) {