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:
commit
0d8828f93d
@ -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
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user