Skip to content

Commit

Permalink
feat: start to sync when plugin is loaded (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Jan 4, 2024
1 parent 68a9784 commit 280f027
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export default class OmnivorePlugin extends Plugin {
this.addSettingTab(new OmnivoreSettingTab(this.app, this))

this.scheduleSync()

// sync when the app is loaded
await this.fetchOmnivore()
}

onunload() {}
Expand Down

0 comments on commit 280f027

Please sign in to comment.