[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:
Jonas Jenwald 2015-04-04 21:26:33 +02:00
parent d156007804
commit 48242abe72

View File

@ -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