Skip to content

Commit

Permalink
feat: unregister renderContributionGraph function when unload plugin (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vran-dev committed Feb 4, 2024
1 parent f7015ce commit bfcc7b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default class ContributionGraph extends Plugin {
this.registerContextMenu();
}

onunload() {}
onunload() {
// @ts-ignore
window.renderContributionGraph = undefined;
}

registerContextMenu() {
this.registerEvent(
Expand Down

0 comments on commit bfcc7b5

Please sign in to comment.