My application uses pdf.js to display PDF files, and everything works smoothly except for one issue with Internet Explorer. Whenever I try to start the app on IE, an exception is thrown:
Unhandled exception at line 8290, column 5 in http://.../scripts/pdf-js/pdf.js
0x800a138f - Timeout execution error JavaScript Code: Couldn't load(get) "src" property fo undefined or empty call.
Although the PDF rendering works perfectly, I would like to find a solution to eliminate this exception message. (Please note that I translated the error message from the code "0x800a138f". If anyone knows the exact English error content, I'll update it and adjust the question title accordingly).
UPDATE
This error occurs every time the application is launched. Despite the error, the functionality works well. The problem is with these specific lines of code in the pdf.js script:
if (!PDFJS.workerSrc && typeof document !== 'undefined') {
// workerSrc is not set -- using last script url to define default location
PDFJS.workerSrc = (function () {
'use strict';
var pdfJsSrc = document.currentScript.src; // here the src cannot be found
return pdfJsSrc && pdfJsSrc.replace(/\.js$/i, '.worker.js');
})();
}