feat: unregister renderContributionGraph function when unload plugin (#57)

This commit is contained in:
vran 2024-02-04 13:05:02 +08:00 committed by GitHub
parent f7015ce179
commit bfcc7b5404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,10 @@ export default class ContributionGraph extends Plugin {
this.registerContextMenu();
}
onunload() {}
onunload() {
// @ts-ignore
window.renderContributionGraph = undefined;
}
registerContextMenu() {
this.registerEvent(