INNER CODE UNIT · TypeScript
setDevToolsConnector
rio-labs/rio · frontend/code/app.ts:13
export function setDevToolsConnector(
connector: DevToolsConnectorComponent
): void {
devToolsConnector = connector;
}
// Set to indicate that we're intentionally leaving the page. This can be used
// to suppress the connection lost popup, reconnects, or similar
export let goingAway: boolean = false;
export let pixelsPerRem = getPixelsPerRem();
globalThis.pixelsPerRem = pixelsPerRem;
async function main(): Promise<void> {
// Browsers have a "duplicate tab" feature which can create 2 tabs that
// share the same session token. We could just try to connect and the server
// would tell us that the session token is in use, but the server is careful
// about rejecting connections and thus might make us wait a while. In order