commit 6aedc8bff5dbee318146c64fa153cbe4af845ff0 parent d94b4683b3100be8e2b2368101cc4a460c0e922f Author: Simon Kornblith <simon@simonster.com> Date: Thu, 16 Feb 2012 16:03:07 -0500 Prevent inconsequential error Diffstat:
| M | chrome/content/zotero/xpcom/standalone.js | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/standalone.js b/chrome/content/zotero/xpcom/standalone.js @@ -79,8 +79,12 @@ Zotero.Standalone = new function() { getService(Components.interfaces.nsIObserverService). addObserver({ "observe":function(ch) { - if(ch.QueryInterface(Components.interfaces.nsIRequest).URI.host - !== "versioncheck.addons.mozilla.org") return; + try { + if(ch.QueryInterface(Components.interfaces.nsIRequest).URI.host + !== "versioncheck.addons.mozilla.org") return; + } catch(e) { + return; + } var newListener = new AMOStreamListener; newListener.oldListener = ch. QueryInterface(Components.interfaces.nsITraceableChannel).