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