On 8/21/23 11:21 PM,
linxz...@gmail.com wrote:
> If they install a plugin for Zotero 7 with preferences starting with
> "extensions.zotero." , newly added preferences' default values will
> not be loaded.
I'm not sure what you mean by this part. Zotero 7 should load any prefs
in prefs.js, regardless of prefix.
There's no technical difference between `extensions.zotero.` and
`extensions.[plugin-name]`. We do recommend `extensions.[plugin-name]`,
and if you switch to that you could migrate your old prefs over from
`extensions.zotero.`.
To be clear, if you're using Zotero.Prefs.get(pref, global)/set(pref,
value, global), you need to pass `true` for the `global` parameter if
you're using something other than `extensions.zotero.`, and you need to
pass the full name of your pref.