diff --git a/web/app.js b/web/app.js index a2b272a5a..b33a1b2e5 100644 --- a/web/app.js +++ b/web/app.js @@ -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 ) {