Do you have an issue with a specific file(s)?
Can you reproduce using one of our samples or online demos? no
Are you using the WebViewer server? no
Does the issue only happen on certain browsers? no
Is your issue related to a front-end framework? yes, electron
Is your issue related to annotations? no
Please give a brief summary of your issue:
Error during fetch i18n files in Electron
Please describe your issue and provide steps to reproduce it:
In electron environment, we report the following error when the WebViewer initializes:
The Fetch API cannot load … traslation-en.json the URL schema file is not supported.
This is due to the fact that PDFJSDocumentType attempts a fetch () on the file, but this is not supported.
I noticed theres a typo in The Fetch API cannot load … traslation-en.json the URL schema file is not supported. it should be translation-en.json, this could possibly be the issue. Where was this error located?
Could you also post a screenshot of the console and network tab? as this could be a CORS issue
Best Regards,
Tyler Gordon
Web Development Support Engineer
PDFTron Systems, Inc. www.pdftron.com