From 10fc0d570621a6711bdc0672082ec9018179ceb1 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:50:39 +0200 Subject: [PATCH] fix: skip auto-sync for all opened notes --- src/modules/sync/hooks.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/sync/hooks.ts b/src/modules/sync/hooks.ts index d7d8f59..4c6efb1 100644 --- a/src/modules/sync/hooks.ts +++ b/src/modules/sync/hooks.ts @@ -66,11 +66,11 @@ async function callSyncing( if (skipActive) { // Skip active note editors' targets const activeNoteIds = Zotero.Notes._editorInstances - .filter( - (editor) => - !Components.utils.isDeadWrapper(editor._iframeWindow) && - editor._iframeWindow.document.hasFocus(), - ) + // .filter( + // (editor) => + // !Components.utils.isDeadWrapper(editor._iframeWindow) && + // editor._iframeWindow.document.hasFocus(), + // ) .map((editor) => editor._item.id); const filteredItems = items.filter( (item) => !activeNoteIds.includes(item.id),