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