1
0
Fork 0
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:
Yury Delendik 2015-11-23 11:46:40 -06:00
parent 450edc95cc
commit b084dc09ee
2 changed files with 13 additions and 4 deletions

View file

@ -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;
}