Prevent inconsequential error

This commit is contained in:
Simon Kornblith 2012-02-16 16:03:07 -05:00
parent d94b4683b3
commit 6aedc8bff5

View File

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