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 authored Jan 4, 2024
1 parent 8fee4c9 commit e263c78
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 e263c78

Please sign in to comment.