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:

ParameterTypeDescription
elHTMLElementThe element to add the icon to.
urlstringThe URL to get the icon for.
source?string | undefinedOptional source URL for the icon.

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