Skip to content

Commit

Permalink
Fixed error .on not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
denisoed committed Mar 24, 2022
1 parent 9d5a142 commit a53a2fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Expand Up @@ -52,6 +52,7 @@ export default class OrthographyPlugin extends Plugin {
if (!this.activeEditor) return;
this.activeEditor.off('change', this.debounceGetDataFunc);
this.activeEditor = this.getEditor();
if (!this.activeEditor) return;
this.activeEditor.on('change', this.debounceGetDataFunc);
});
}
Expand Down

0 comments on commit a53a2fb

Please sign in to comment.