Lint
This commit is contained in:
parent
59d9edb4b1
commit
5fb7d71395
1 changed files with 6 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ export default class VaultLinkPlugin extends Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
private registerEditorEvents() {
|
||||
private registerEditorEvents(): void {
|
||||
[
|
||||
this.app.workspace.on(
|
||||
"editor-change",
|
||||
|
|
@ -136,7 +136,7 @@ export default class VaultLinkPlugin extends Plugin {
|
|||
_editor: Editor,
|
||||
info: MarkdownView | MarkdownFileInfo
|
||||
) => {
|
||||
const file = info.file;
|
||||
const { file } = info;
|
||||
if (file) {
|
||||
await this.client.syncLocallyUpdatedFile({
|
||||
relativePath: file.path
|
||||
|
|
|
|||
Loading…
Reference in a new issue