wshanks / Zutilo

Zotero plugin providing some additional editing features
Other
1.53k stars 72 forks source link

Update prompt API usage in zoteroOverlay.js #270

Closed kyhite closed 4 months ago

kyhite commented 5 months 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 4 months ago

Glad I could help!