mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-23 19:30:59 +02:00
Don't save modified documents, when running tests, upon closing the viewer (issue 18274)
This commit is contained in:
parent
701325896a
commit
9e811b97b1
@ -919,7 +919,8 @@ const PDFViewerApplication = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
|
(typeof PDFJSDev === "undefined" ||
|
||||||
|
PDFJSDev.test("GENERIC && !TESTING")) &&
|
||||||
this.pdfDocument?.annotationStorage.size > 0 &&
|
this.pdfDocument?.annotationStorage.size > 0 &&
|
||||||
this._annotationStorageModified
|
this._annotationStorageModified
|
||||||
) {
|
) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user