Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

PDFs not opening #61

Closed
ghost opened this issue Sep 1, 2018 · 1 comment
Closed

PDFs not opening #61

ghost opened this issue Sep 1, 2018 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Sep 1, 2018

PDF.js loads but the file doesn't.
I get these errors:

GET http://192.168.1.134:8090/static/reader/pdf/build/pdf.js 404 (Not Found)
viewer.html:1 Refused to execute script from 'http://192.168.1.134:8090/static/reader/pdf/build/pdf.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
pdfjs.js:23 Uncaught ReferenceError: require is not defined
    at Object.defineProperty.value (pdfjs.js:23)
    at __webpack_require__ (bootstrap 0c2d1d550f09a9601b09:19)
    at Object.pdfjsLib (ui_utils.js:16)
    at __webpack_require__ (bootstrap 0c2d1d550f09a9601b09:19)
    at Object.defineProperty.value (app.js:21)
    at __webpack_require__ (bootstrap 0c2d1d550f09a9601b09:19)
    at Object.<anonymous> (viewer.js:40)
    at __webpack_require__ (bootstrap 0c2d1d550f09a9601b09:19)
    at Object.defineProperty.value (bootstrap 0c2d1d550f09a9601b09:65)
    at bootstrap 0c2d1d550f09a9601b09:65
@pgaskin
Copy link
Owner

pgaskin commented Sep 1, 2018

Hmm. I'll fix this in the next version of BookBrowser. It seems like the wrong mimetype is being sent.

@pgaskin pgaskin self-assigned this Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant