Merge branch '4.0' into api_syncing
This commit is contained in:
commit
bdd69d0a53
331 changed files with 6214 additions and 2627 deletions
|
@ -47,6 +47,7 @@ const xpcomFilesAll = [
|
|||
'translation/translator',
|
||||
'translation/tlds',
|
||||
'utilities',
|
||||
'isbn',
|
||||
'utilities_internal',
|
||||
'utilities_translate'
|
||||
];
|
||||
|
@ -180,6 +181,21 @@ ZoteroContext.prototype = {
|
|||
}
|
||||
|
||||
return zContext;
|
||||
},
|
||||
|
||||
/**
|
||||
* Shuts down Zotero, calls a callback (that may return a promise),
|
||||
* then reinitializes Zotero. Returns a promise that is resolved
|
||||
* when this process completes.
|
||||
*/
|
||||
"reinit":function(cb, isConnector) {
|
||||
Services.obs.notifyObservers(zContext.Zotero, "zotero-before-reload", isConnector ? "connector" : "full");
|
||||
return zContext.Zotero.shutdown().then(function() {
|
||||
return cb ? cb() : false;
|
||||
}).finally(function() {
|
||||
makeZoteroContext(isConnector);
|
||||
zContext.Zotero.init(zInitOptions);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue