?? PDFjs 2.2 Not Working?
-
If you just updated to PDFjs 2.2, and it’s no longer working, there’s a good chance your host needs to add support for JavaScript modules (mjs) files.
To do this, you can try one of the following.
- Add
AddType application/javascript .mjs
to your .htaccess file if you’re on an Apache server. - If you’re on a nginx server, open your
mime-types.conf.hbs
file and updateapplication/x-javascript js;
toapplication/x-javascript js mjs;
- Contact your hosting support and ask them to add a mime type support for mjs files.
I’m sorry for the headaches this change is causing. Unfortunately, this plugin is just a wrapper for Mozilla’s PDFjs, and they started using mjs files, which means we have to too.
- Add
- You must be logged in to reply to this topic.