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

Adds/modifies examples for node.js and webpack.

This commit is contained in:
Yury Delendik 2015-12-21 13:46:50 -06:00
parent 9228e1ffcf
commit 79c2f69c32
15 changed files with 170 additions and 19 deletions

View file

@ -120,9 +120,17 @@ DOMElement.prototype = {
},
}
global.window = global;
global.navigator = { userAgent: 'node' };
global.document = {
childNodes : [],
get currentScript() {
return { src: '' };
},
get documentElement() {
return this;
},