From 5ce49de490f352c62d231b9e4703d6aefe48421c Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 27 Dec 2023 19:43:55 +0800 Subject: [PATCH] feat: start to sync when plugin is loaded --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 9348706..2e20722 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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() {}