mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #8232 from amccreight/lazy-net-util
Lazily load NetUtil.jsm in PdfStreamConverter.jsm.
This commit is contained in:
commit
12c1679288
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ const MAX_STRING_PREF_LENGTH = 128;
|
|||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/NetUtil.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
|
||||
"resource://gre/modules/NetUtil.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "NetworkManager",
|
||||
"resource://pdf.js/PdfJsNetwork.jsm");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue