From 48242abe729b73dd9fe9be0795f44d1db31400ec Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 4 Apr 2015 21:26:33 +0200 Subject: [PATCH] [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. --- web/viewer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/viewer.js b/web/viewer.js index ccf940fac..f9788d83b 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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