Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined is not an object #30

Open
YvesBernas opened this issue Jun 20, 2022 · 2 comments
Open

Undefined is not an object #30

YvesBernas opened this issue Jun 20, 2022 · 2 comments

Comments

@YvesBernas
Copy link

YvesBernas commented Jun 20, 2022

I have this issue , with Safari 15.5 on Monterey 12.4
running Hugo server
undefined is not an object (evaluating 'pdfjsLib.GlobalWorkerOPtions...
Screenshot 2022-06-20 at 13 13 55

thanks in advance
best regards

@anvithks
Copy link
Owner

@YvesBernas seems like a path issue. I haven't tested it on safari / Mac but it really shouldn't be an issue. I will check this over the weekend and get back to you.

@anvithks
Copy link
Owner

This is indeed a path issue when we specify the window object as pdfjsLib.
This is sorted when you set the path correctly at the start of the embed-pdf.html file.
Please do pick the latest code and give it a try and let me know how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants