Call Relay.run() in a content script to start forwarding ChainPatrol warning-page events between the page and your browser extension background script.
Example
import { Relay, Events } from "@chainpatrol/sdk";Relay.run([Events.ContinueAtOwnRisk]);
Parameters
The run() method accepts one parameter which is an array of events to forward:
EventType[]
required
The events property specifies what events to forward to other listeners of
the relay.