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:
parent
b18c580dac
commit
e3a9c6779b
11 changed files with 188 additions and 156 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue