[Zotero 7 Beta] Plugin: addToMainWindow not called for some windows
Because of this line:
https://github.com/zotero/zotero/blob/eeece86b4eab9c105f49011fee1ec213cba436c0/chrome/content/zotero/xpcom/plugins.js#L76
Windows like preferences don't trigger the addin. While it is possible to work around this by using Services.wm.addListener it does add a bit of extra complexity to my addin.
Thank you
https://github.com/zotero/zotero/blob/eeece86b4eab9c105f49011fee1ec213cba436c0/chrome/content/zotero/xpcom/plugins.js#L76
Windows like preferences don't trigger the addin. While it is possible to work around this by using Services.wm.addListener it does add a bit of extra complexity to my addin.
Thank you
A quick answer to your question: only the *main* window triggers that. The prefs window is not a main window.