Skip to content
Docs
Reference

Function: encodeHostTheme()

Function: encodeHostTheme() in @ticketlayer/live.

@ticketlayer/live


@ticketlayer/live / index / encodeHostTheme

function encodeHostTheme(theme: HostTheme): string | null;

Defined in: state/hostTheme.ts:105

The theme parameter for a host theme, or null when there is nothing to send (every token at its default): the parameter is then left off the URL altogether and the checkout behaves exactly as it did before TKT-354.

Parameters#

ParameterType
themeHostTheme

Returns#

string | null