Skip to content

Commit

Permalink
fix: plugin monkey patch register event
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreBaltazar8 committed Jan 1, 2023
1 parent 51ade06 commit ccaa3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canvas-patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function performCanvasMonkeyPatch(plugin: Plugin) {

if (!canvasNodePrototype) {
plugin.registerEvent(
this.app.workspace.on("active-leaf-change", () => {
plugin.app.workspace.on("active-leaf-change", () => {
const view = app.workspace.getActiveViewOfType(ItemView);
checkCanvasMonkeyPatch(view);
})
Expand Down

0 comments on commit ccaa3b8

Please sign in to comment.