Skip to content

WebviewerDBStore.loadIcon method

WebviewerDBStore › loadIcon

Unofficial

Load stored icon in Base64 encoded string. If no stored icon available in the database, it also stores the icon.

Signature:

loadIcon(domain: string, source?: string | undefined): Promise<null | string>

Parameters:

Parameter Type Description
domain string Domain name only, e.g. "obsidian.md".
source? string | undefined Source url of the icon, e.g. "https://obsidian.md/favicon.ico". Used as a fallback source if there is no icon stored with corresponding domain.

Returns: Promise<null | string>Icon in Base64 encoded string.