Skip to content

Commit

Permalink
fix: notifier unregister when other plugin disabled (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
northword authored Dec 7, 2024
1 parent 03b0db3 commit 9c21e13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ export class BasicExampleFactory {
]);

Zotero.Plugins.addObserver({
shutdown: ({ id: pluginID }) => {
this.unregisterNotifier(notifierID);
shutdown: ({ id }) => {
if (id === addon.data.config.addonID)
this.unregisterNotifier(notifierID);
},
});
}
Expand Down

0 comments on commit 9c21e13

Please sign in to comment.