Clean up API
This commit is contained in:
parent
e7ec41eafe
commit
8a9f87cc05
2 changed files with 81 additions and 42 deletions
|
|
@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue