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:
parent
9228e1ffcf
commit
79c2f69c32
15 changed files with 170 additions and 19 deletions
|
@ -120,9 +120,17 @@ DOMElement.prototype = {
|
|||
},
|
||||
}
|
||||
|
||||
global.window = global;
|
||||
|
||||
global.navigator = { userAgent: 'node' };
|
||||
|
||||
global.document = {
|
||||
childNodes : [],
|
||||
|
||||
get currentScript() {
|
||||
return { src: '' };
|
||||
},
|
||||
|
||||
get documentElement() {
|
||||
return this;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue