Fix PDF previews (#4723)

This commit is contained in:
David Marby 2022-04-25 13:38:52 +02:00 committed by GitHub
parent e7730587ef
commit ec85cd664b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,8 @@
import { autoBindMethodsForReact } from 'class-autobind-decorator';
import * as PDF from 'pdfjs-dist';
import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.entry';
PDF.GlobalWorkerOptions.workerSrc = pdfjsWorker;
import React, { CSSProperties, PureComponent } from 'react';
import { AUTOBIND_CFG } from '../../../common/constants';