Restore connector mode functionality in Firefox

Non-Zotero for Firefox connector code will probably need to be updated
to handle these changes.
This commit is contained in:
Dan Stillman 2016-09-05 20:41:35 -04:00
parent b18c580dac
commit e3a9c6779b
11 changed files with 188 additions and 156 deletions

View file

@ -336,9 +336,6 @@ function ZoteroService() {
makeZoteroContext(false);
zContext.Zotero.init(zInitOptions)
.catch(function (e) {
dump(e + "\n\n");
Components.utils.reportError(e);
if (e === "ZOTERO_SHOULD_START_AS_CONNECTOR") {
// if Zotero should start as a connector, reload it
return zContext.Zotero.shutdown()
@ -347,9 +344,10 @@ function ZoteroService() {
return zContext.Zotero.init(zInitOptions);
})
}
else {
throw e;
}
dump(e + "\n\n");
Components.utils.reportError(e);
throw e;
})
.then(function () {
zContext.Zotero.debug("Initialized in "+(Date.now() - start)+" ms");