This plugin works fine on the first start of Zotero. However, on Mac if you close the window but not quit the application, you can activate or "restore" the window in the dock. After that, the plugin does not work due to init failure. This issue may relate to #26 #29 .
While the issue should be caused by the load orders, my trail on "window.onload" or "document.addEventListener("DOMContentLoaded" failed.
This PR provides an ugly fix by retrying after 1s. It works for me on MacOS Catalina 10.15.6.
I'm still not clear to what you have done on your Mac to figure out that. I'm MacOS Catalina 10.15.7, so I think it maybe will work also. I'm looking forward to your teaching!
This plugin works fine on the first start of Zotero. However, on Mac if you close the window but not quit the application, you can activate or "restore" the window in the dock. After that, the plugin does not work due to init failure. This issue may relate to #26 #29 .
While the issue should be caused by the load orders, my trail on "window.onload" or "document.addEventListener("DOMContentLoaded" failed.
This PR provides an ugly fix by retrying after 1s. It works for me on MacOS Catalina 10.15.6.