Skip to content

Commit dd52343

Browse files
committed
Fix downloading the current pdf
1 parent 4d0709c commit dd52343

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

web/app.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,9 +1316,10 @@ const PDFViewerApplication = {
13161316
const { classList } = this.appConfig.appContainer;
13171317
classList.add("wait");
13181318

1319-
const structuralChanges = this.pdfThumbnailViewer?.getStructuralChanges();
1320-
if (structuralChanges) {
1321-
await this.onSavePages({ data: structuralChanges });
1319+
if (this.pdfThumbnailViewer?.hasStructuralChanges()) {
1320+
await this.onSavePages({
1321+
data: this.pdfThumbnailViewer.getStructuralChanges(),
1322+
});
13221323
} else {
13231324
await (this.pdfDocument?.annotationStorage.size > 0
13241325
? this.save()

0 commit comments

Comments
 (0)