Skip to content

Commit 152677b

Browse files
committed
fix: sync with omnivore in the background if we are in the right graph when we open Logseq or reload
1 parent 67ee9e4 commit 152677b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,9 @@ const main = async (baseInfo: LSPluginBaseInfo) => {
574574
`)
575575

576576
// fetch articles on startup
577-
await fetchOmnivore(true)
577+
if (await isValidCurrentGraph()) {
578+
await fetchOmnivore(true)
579+
}
578580

579581
// sync every frequency minutes
580582
intervalID = syncOmnivore()

0 commit comments

Comments
 (0)