www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 2c5bfd5d5a61f7ffac30e447ace38bccbc9fb296
parent f856df52223e674ca479ff58c5c4f54b6d836fc9
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 13 Jul 2015 19:28:02 -0400

Disable disabling by reverse lookup on non-Mac/Windows/Linux

If this is the case, it's probably a BSD derivative, but I can't
guarantee the code won't segfault.

Diffstat:
Mchrome/content/zotero/xpcom/proxy.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/proxy.js b/chrome/content/zotero/xpcom/proxy.js @@ -175,6 +175,8 @@ Zotero.Proxies = new function() { if (Zotero.Proxies.disabledByDomain) return; } _maybeRedirect(channel, notificationCallbacks, proxied); + }, function(e) { + _maybeRedirect(channel, notificationCallbacks, proxied); }); Zotero.Proxies.lastIPCheck = now; return; @@ -922,6 +924,7 @@ Zotero.Proxies.DNS = new function() { var _callbacks = []; this.getHostnames = function() { + if (!Zotero.isWin && !Zotero.isMac && !Zotero.isLinux) return Q([]); var deferred = Q.defer(); var worker = new ChromeWorker("chrome://zotero/content/xpcom/dns_worker.js"); Zotero.debug("Proxies.DNS: Performing reverse lookup");