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

Convert globalScope and isNodeJS to proper modules

Slightly unrelated to the rest of the patch, but this also removes an out-of-place `globals` definition from the `web/viewer.js` file.
This commit is contained in:
Jonas Jenwald 2019-11-10 15:10:18 +01:00
parent c2bd3a0bfb
commit 2817121bc1
20 changed files with 34 additions and 27 deletions

View file

@ -17,7 +17,7 @@
import { setStubs, unsetStubs } from '../../examples/node/domstubs';
import { buildGetDocumentParams } from './test_utils';
import { getDocument } from '../../src/display/api';
import isNodeJS from '../../src/shared/is_node';
import { isNodeJS } from '../../src/shared/is_node';
import { NativeImageDecoding } from '../../src/shared/util';
import { SVGGraphics } from '../../src/display/svg';