1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Merge pull request #19790 from Snuffleupagus/test-getAnnotationStorage-rm-entries

Simplify the `getAnnotationStorage` integration-test helper function
This commit is contained in:
Tim van der Meij 2025-04-12 13:36:20 +02:00 committed by GitHub
commit f482232493
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -466,8 +466,8 @@ async function getFirstSerialized(page, filter = undefined) {
function getAnnotationStorage(page) {
return page.evaluate(() =>
Object.fromEntries(
window.PDFViewerApplication.pdfDocument.annotationStorage.serializable.map?.entries() ||
[]
window.PDFViewerApplication.pdfDocument.annotationStorage.serializable
.map || []
)
);
}