mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Fix PDF previews (#4723)
This commit is contained in:
parent
e7730587ef
commit
ec85cd664b
@ -1,5 +1,8 @@
|
|||||||
import { autoBindMethodsForReact } from 'class-autobind-decorator';
|
import { autoBindMethodsForReact } from 'class-autobind-decorator';
|
||||||
import * as PDF from 'pdfjs-dist';
|
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 React, { CSSProperties, PureComponent } from 'react';
|
||||||
|
|
||||||
import { AUTOBIND_CFG } from '../../../common/constants';
|
import { AUTOBIND_CFG } from '../../../common/constants';
|
||||||
|
Loading…
Reference in New Issue
Block a user