Skip to content

Commit

Permalink
Remove workaround for wrong downloadManager type
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed May 8, 2024
1 parent 8d08eaf commit a6d74fb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/react-pdf/src/Page/AnnotationLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import usePageContext from '../shared/hooks/usePageContext.js';
import useResolver from '../shared/hooks/useResolver.js';
import { cancelRunningTask } from '../shared/utils.js';

import type { IDownloadManager } from 'pdfjs-dist/types/web/interfaces.js';
import type { Annotations } from '../shared/types.js';

export default function AnnotationLayer() {
Expand Down Expand Up @@ -172,8 +171,6 @@ export default function AnnotationLayer() {
annotations,
annotationStorage: pdf.annotationStorage,
div: layer,
// See https://github.com/mozilla/pdf.js/issues/17029
downloadManager: null as unknown as IDownloadManager,
imageResourcesPath,
linkService,
page,
Expand Down

0 comments on commit a6d74fb

Please sign in to comment.