Replies: 1 comment 1 reply
-
Did you add support to your server for mjs files? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Configuration:
Steps to Reproduce the Problem:
For my private Jekyll-based website, I created
pdfjs.liquid
under/include/scripts
with the following content:I created
pdfViewer.js
underassets/js/
with the following code:}
On a page with a post layout, I attempted to utilize
pdf.js
with the following script:Unfortunately, the result was disappointing; I only observed a white box where the PDF should display.
Additionally, I attempted to run the simple PDF.js example, but the outcome was the same, a white box instead of the expected PDF content (refer to the screenshot below).
Screenshot:

Beta Was this translation helpful? Give feedback.
All reactions