Dear PDFTron Team,
I am experiencing a similar problem with Firefox Quantum 60.0.2 (64-bit). The following errors are thrown in Firefox while it works like a charm in Chrome Version 67.0.3396.99 (Official Build) (64-bit)
I don't know about IE or Edge.
Please find a sample project in Angular 6 with which the errors are reproducible
here. Download all attached files and unzip them while all of them are in the same directory. To make the project work please enter a valid license key in viewer.component.ts line 52.
Run yarn/npm install and then yarn/npm start to get the Web Server running on localhost:4200.
The word "Loading" will appear and after some debouncing time the PDFTron WebViewer will display a PDF File in Chrome. In Firefox the word "Loading" never goes away.
As a hint: I was unable to reproduce the error until I introduced our loading-hint component which is displayed until the WebViewer fires its "documentLoaded" event.
The filestructure in the sample project represents our project's file structure. In our project we have a Player for different medias e.g. PDF, Video, Audio, etc. The media.component.ts shows a loading spinner (in the sample project only the word "Loading") until the respective player for the provided file type has loaded (in the sample project this can only be PDF).
I am looking forward to your feedback.
Kind regards,
Thorsten