@fkn/lib/broker-frame
Variables
Section titled “Variables”brokerFrameScript
Section titled “brokerFrameScript”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.
Functions
Section titled “Functions”brokerFrameSrc()
Section titled “brokerFrameSrc()”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.
Parameters
Section titled “Parameters”isolated
Section titled “isolated”boolean
Returns
Section titled “Returns”string