mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 07:38:07 +02:00
[B2G] Stub the |DownloadManager| to avoid error
After the refactoring in PR 5678, the B2G viewer now prints the following in the console: ``` ReferenceError: DownloadManager is not defined ``` This will obviously not matter once the B2G viewer is replaced with the new components-based one. But until that happens, I think it makes sense to just stub the class to suppress the error.
This commit is contained in:
parent
d156007804
commit
48242abe72
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ var mozL10n = document.mozL10n || document.webL10n;
|
|||
//#if GENERIC || CHROME
|
||||
//#include download_manager.js
|
||||
//#endif
|
||||
//#if B2G
|
||||
//var DownloadManager = (function DownloadManagerClosure() {
|
||||
// return function DownloadManager() {};
|
||||
//})();
|
||||
//#endif
|
||||
|
||||
//#if FIREFOX || MOZCENTRAL
|
||||
//#include firefoxcom.js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue