mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38: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:
parent
c2bd3a0bfb
commit
2817121bc1
20 changed files with 34 additions and 27 deletions
|
@ -18,7 +18,7 @@ import {
|
|||
DOMCanvasFactory, DOMSVGFactory, getFilenameFromUrl, isValidFetchUrl,
|
||||
PDFDateString
|
||||
} from '../../src/display/display_utils';
|
||||
import isNodeJS from '../../src/shared/is_node';
|
||||
import { isNodeJS } from '../../src/shared/is_node';
|
||||
|
||||
describe('display_utils', function() {
|
||||
describe('DOMCanvasFactory', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue