mikecousins/react-pdf-js

在node-webkit中运行报错

Closed this issue · 1 comments

Error: Setting up fake worker failed: "Cannot load script at: chrome-extension://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.worker.js".
at eval (index.js:55265)

You'll want to specify the URL for the worker yourself if you're going to be using it from a chrome extension. Use the prop workerSrc and specify a url.