1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Merge pull request #18282 from Snuffleupagus/issue-18274

Don't save modified documents, when running tests, upon closing the viewer (issue 18274)
This commit is contained in:
Tim van der Meij 2024-06-18 20:55:27 +02:00 committed by GitHub
commit 0d8828f93d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
) {