Skip to content

WebviewerDBStore.storeIcon method

WebviewerDBStore › storeIcon

Unofficial

Store specific icon for the given domain name in Base64 string.

Signature:

storeIcon(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".

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