wshanks / Zutilo

Zotero plugin providing some additional editing features
Other
1.47k stars 71 forks source link

Update prompt API usage in zoteroOverlay.js #270

Closed kyhite closed 3 days ago

kyhite commented 1 month ago

Using "@mozilla.org/embedcomp/prompt-service;1" seems to be a common error now with zotero7.0+ (see https://github.com/retorquere/zotero-better-bibtex/issues/2829). As a result, functions such as "Copy Zotero URIs" were no longer working as intended.

I tried following some advice from this thread (https://github.com/jobisoft/quicktext/issues/348) that at some point had a similar problem by replacing var prompts = Components.classes['@mozilla.org/embedcomp/prompt-service;1'].getService(Components.interfaces.nsIPromptService); with var prompts = Services.prompt; Worked like a charm.

kyhite commented 2 days ago

Glad I could help!