From 280f0271c317ef6354fca9cdc8721c8a1d74b963 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 4 Jan 2024 10:48:14 +0800 Subject: [PATCH] feat: start to sync when plugin is loaded (#170) --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 22d59ea..236974a 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() {}