From 74653faf4e39efc5fbac0634ed27a31f6336a456 Mon Sep 17 00:00:00 2001 From: Xavier Carpentier Date: Thu, 9 Jul 2020 13:28:24 +0200 Subject: [PATCH] fix --- react-pdf/Reader.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/react-pdf/Reader.tsx b/react-pdf/Reader.tsx index da61901..c88a0f4 100755 --- a/react-pdf/Reader.tsx +++ b/react-pdf/Reader.tsx @@ -10,9 +10,6 @@ import Up from './components/up' import './Reader.less' const ReactContainer = document.querySelector('#react-container') -// const PDFJS = pdfjs as any - -// PDFJS.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${PDFJS.version}/pdf.worker.js` const version = '2.1.266' const options = { cMapUrl: `//cdn.jsdelivr.net/npm/pdfjs-dist@${version}/cmaps/`,