Skip to content

WebviewerDBStore.setIcon method

WebviewerDBStore › setIcon

Unofficial

Add a fav icon to the element.

Signature:

setIcon(el: HTMLElement, url: string, source?: string | undefined): Promise<void>

Parameters:

Parameter Type Description
el HTMLElement The element to add the icon to.
url string The URL to get the icon for.
source? string | undefined Optional source URL for the icon.

Returns: Promise<void>A promise that resolves when the icon is set on the element.