Dear all,
Services.scriptloader.loadSubScript('resource://pdf.js/build/pdf.js', this);
My naive understanding is that I should be able to import the module like this (either in the startup function or somewhere in my main source file):
const { pdfjsLib } = ChromeUtils.importESModule("resource://zotero/reader/pdf/build/pdf.mjs")
Unfortunately this fails with this error:
can't redefine non-configurable property "reduce"
Any thoughts/suggestions? I'd be happy to read those.
Cheers,
A. Borel