Update pdf.js references to mjs

Created on 27 January 2024, 5 months ago
Updated 1 April 2024, 3 months ago

Problem/Motivation

Mozilla pdf.js is now packaging their js files as `mjs` files. This module is trying to load the libraries with the `.js` extension.

Further, the `pdf.mjs` module needs to be loaded with`type="module"`.

Steps to reproduce

  1. Install PDF module
  2. Copy the mozilla pdf.js files into the `/libraries/pdf.js' folder
  3. Create a view using the "PDF: Display the first page" format.

Proposed resolution

Update the references from `js` to `mjs` in the field formatters and the libraries file. Also add the module type attribute

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇦🇺Australia nicholosophy Brisbane

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024