Clean up API

This commit is contained in:
Andras Schmelczer 2025-03-20 22:27:07 +00:00
parent e7ec41eafe
commit 8a9f87cc05
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 81 additions and 42 deletions

View file

@ -62,6 +62,7 @@ export default class VaultLinkPlugin extends Plugin {
this.app.workspace.onLayoutReady(async () => {
this.client.logger.info("Initialising sync handlers");
[
this.app.vault.on(
"create",
@ -83,9 +84,9 @@ export default class VaultLinkPlugin extends Plugin {
this.registerEvent(event);
});
this.client.logger.info("Sync handlers initialised");
void this.client.start();
void this.client.syncer.scheduleSyncForOfflineChanges();
this.client.logger.info("Sync handlers initialised");
});
}