Log skipped libraries
This commit is contained in:
parent
1a46196080
commit
0ad439395e
1 changed files with 7 additions and 3 deletions
|
@ -340,10 +340,14 @@ Zotero.Sync.Runner_Module = function (options = {}) {
|
||||||
if (syncAllLibraries) {
|
if (syncAllLibraries) {
|
||||||
if (access.user && access.user.library) {
|
if (access.user && access.user.library) {
|
||||||
libraries = [Zotero.Libraries.userLibraryID];
|
libraries = [Zotero.Libraries.userLibraryID];
|
||||||
|
let skippedLibraries = Zotero.Sync.Data.Local.getSkippedLibraries();
|
||||||
|
|
||||||
// If syncing all libraries, remove skipped libraries
|
// If syncing all libraries, remove skipped libraries
|
||||||
libraries = Zotero.Utilities.arrayDiff(
|
if (skippedLibraries.length) {
|
||||||
libraries, Zotero.Sync.Data.Local.getSkippedLibraries()
|
Zotero.debug("Skipped libraries:");
|
||||||
);
|
Zotero.debug(skippedLibraries);
|
||||||
|
libraries = Zotero.Utilities.arrayDiff(libraries, skippedLibraries);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue