ssi.nostr.getPrefs()

Get preference’s values

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 object of ssi.nostr.Preference. Returns Promise<null> if error.

Examples

You will get what you need. The return value is ssi.nostr.Preference.

const preferences = await browser.ssi.nostr.getPrefs()
store.set(preferences)

Note

This documentation is derived from ssi.nostr.json in gecko-dev-for-ssi.