fix: notifier unregister when other plugin disabled (#221)
This commit is contained in:
parent
03b0db3a97
commit
9c21e13698
@ -44,7 +44,8 @@ export class BasicExampleFactory {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
Zotero.Plugins.addObserver({
|
Zotero.Plugins.addObserver({
|
||||||
shutdown: ({ id: pluginID }) => {
|
shutdown: ({ id }) => {
|
||||||
|
if (id === addon.data.config.addonID)
|
||||||
this.unregisterNotifier(notifierID);
|
this.unregisterNotifier(notifierID);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user