Skip to content

@fkn/lib/broker-frame

const brokerFrameScript: string;

The source of an inline <script> that mounts fkn.app’s broker frame while the page’s html is parsed, for the start of <body>. @fkn/lib adopts the frame instead of mounting its own once the bundle runs, so the broker loads alongside the bundle rather than after it.

It mounts the same frame the lib would (address, allow list, clipped out of view and out of the Tab order and the accessibility tree until FKN draws something in it), and nothing in a framed page, which asks its parent for a broker first. Every step that fails leaves the mount to the lib, as without it.

function brokerFrameSrc(isolated): string;

The broker frame’s address. /api?coi=1 is the variant that sends COEP and CORP, which a cross-origin isolated page needs to embed at all.

boolean

string