1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Makes WorkerMessageHandler non-global.

This commit is contained in:
Yury Delendik 2016-03-02 19:16:38 -06:00
parent bda5e6235e
commit e372f3608b
4 changed files with 26 additions and 22 deletions

View file

@ -994,11 +994,6 @@ function initializeWorker() {
handler.send('ready', null);
}
if (globalScope.PDFJS) {
// TODO properly handle WorkerMessageHandler as a module export at api.js.
globalScope.PDFJS.WorkerMessageHandler = WorkerMessageHandler;
}
// Worker thread (and not node.js)?
if (typeof window === 'undefined' &&
!(typeof module !== 'undefined' && module.require)) {