mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Allows requirejs and node load fake worker files.
This commit is contained in:
parent
450edc95cc
commit
b084dc09ee
2 changed files with 13 additions and 4 deletions
|
@ -648,7 +648,7 @@ var workerConsole = {
|
|||
|
||||
|
||||
// Worker thread?
|
||||
if (typeof window === 'undefined') {
|
||||
if (typeof window === 'undefined' && typeof require === 'undefined') {
|
||||
if (!('console' in globalScope)) {
|
||||
globalScope.console = workerConsole;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue