diff --git a/chrome/content/zotero/xpcom/streamer.js b/chrome/content/zotero/xpcom/streamer.js index f6230f2485..22059033e8 100644 --- a/chrome/content/zotero/xpcom/streamer.js +++ b/chrome/content/zotero/xpcom/streamer.js @@ -216,8 +216,10 @@ Zotero.Streamer_Module.prototype = { let library = Zotero.URI.getPathLibrary(data.topic); if (library) { // Ignore if skipped library - let skipped = Zotero.Sync.Data.Local.getSkippedLibraries(); - if (skipped.includes(library.libraryID)) return; + if (!Zotero.Sync.Data.Local.filterSkippedLibraries([library]).length) { + Zotero.debug("Library not selected for syncing -- skipping"); + return; + } if (data.version && data.version == library.libraryVersion) { Zotero.debug("Library is already up to date");