Improve API
This commit is contained in:
parent
d45d2c0be3
commit
9d60ec14dd
4 changed files with 55 additions and 57 deletions
|
|
@ -49,7 +49,11 @@ export default class VaultLinkPlugin extends Plugin {
|
|||
|
||||
this.registerEditorEvents(client);
|
||||
|
||||
this.register(async () => client.destroy());
|
||||
this.register(async () => {
|
||||
await client.waitUntilFinished();
|
||||
await client.destroy();
|
||||
});
|
||||
|
||||
await client.start();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue