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:
parent
bda5e6235e
commit
e372f3608b
4 changed files with 26 additions and 22 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue