mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Remove global window and navigator usages from the core code.
This commit is contained in:
parent
1e3e14e6b2
commit
1e4886a15a
4 changed files with 9 additions and 13 deletions
|
@ -120,10 +120,6 @@ DOMElement.prototype = {
|
|||
},
|
||||
}
|
||||
|
||||
global.window = global;
|
||||
|
||||
global.navigator = { userAgent: 'node' };
|
||||
|
||||
global.document = {
|
||||
childNodes : [],
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue