function initialsFor
initialsFor(
siteName: string | undefined,
url: string | undefined
): string

Returns the letter drawn when there's no favicon to show, the first letter or digit of siteName, or else of the hostname of url, or "?".

Parameters

siteName: string | undefined
url: string | undefined

Return Type

string

Usage

import { initialsFor } from "src/utils/shared/thumbnailTint.ts";