Hello! I'm developing a plugin with Zotero 8.0-beta.19+b9ef88d4f. I can add a menu item using Zotero.MenuManager.registerMenu(), but the icon is never visible.
The "Metadata Search" item should have a magnifying class icon to its left, but it doesn't (see attachment).
I think the icon path is correct, because if I use the
zotero-plugin-toolkit MenuManager then the icon displays correctly! But the zotero-plugin-toolkit MenuManager is deprecated in favor of the new Zotero.MenuManager, so I'm trying to use only the latter in my code, and I can't make the icon display.
I used the Firefox debugger to step into Zotero's
menuManager.js, and it definitely executed this line where it adds my icon to the menu element. But I still don't see the icon.
Here's the relevant code in my repo. Do you have any suggestions for how to debug this? I.e., how do I double-check that the icon path is correct, or figure out why the Firefox runtime isn't displaying it?
Thanks.