Revert XDR timeout changes from 11316d952b

This commit is contained in:
Simon Kornblith 2013-04-15 14:51:53 -04:00
parent 771cfc9ca6
commit 5a664ec3d9

View File

@ -54,10 +54,10 @@ Zotero.Connector = new function() {
callback(false); callback(false);
}; };
window.setTimeout(fail, 1200); window.setTimeout(fail, 1000);
try { try {
var xdr = new XDomainRequest(); var xdr = new XDomainRequest();
xdr.timeout = 1000; xdr.timeout = 700;
xdr.open("POST", "http://127.0.0.1:23119/connector/ping", true); xdr.open("POST", "http://127.0.0.1:23119/connector/ping", true);
xdr.onerror = function() { xdr.onerror = function() {
Zotero.debug("Connector: XDomainRequest to Zotero Standalone experienced an error"); Zotero.debug("Connector: XDomainRequest to Zotero Standalone experienced an error");