ssi.nostr.getPrefs()
Get the user’s preference values. Since this is obtained passively and is not something that the user explicitly takes action on, ssi.askConsent
is not called. The user controls whether or not to disclose it in the settings. Here, only values that are based on such assumptions would be returned.
This is an asynchronous function that returns a Promise.
Syntax
const objectValue = await browser.ssi.nostr.getPrefs()
Parameters
None.
Return value
A Promise that will be fulfilled with a ssi.bitcoin.Preference
object. Returns Promise<null>
if error.
Examples
You will get what you need. The return value is ssi.nostr.Preference.
const preferences = browser.ssi.nostr.getPrefs()
store.set(preferences)
This documentation is derived from ssi.nostr.json in gecko-dev-for-ssi.