mirror of
https://github.com/vran-dev/obsidian-contribution-graph.git
synced 2026-07-22 09:20:23 +00:00
feat: unregister renderContributionGraph function when unload plugin (#57)
This commit is contained in:
parent
f7015ce179
commit
bfcc7b5404
1 changed files with 4 additions and 1 deletions
|
|
@ -14,7 +14,10 @@ export default class ContributionGraph extends Plugin {
|
|||
this.registerContextMenu();
|
||||
}
|
||||
|
||||
onunload() {}
|
||||
onunload() {
|
||||
// @ts-ignore
|
||||
window.renderContributionGraph = undefined;
|
||||
}
|
||||
|
||||
registerContextMenu() {
|
||||
this.registerEvent(
|
||||
|
|
|
|||
Loading…
Reference in a new issue