five-on-it / apps/client/src/ui/run-view / runBackHref
Function: runBackHref()
runBackHref(
run,search,inLobby?):string
Defined in: apps/client/src/ui/run-view.ts:64
Where a run's results lead back to: the lobby it came from (its page's inLobby) while the player is still in it (inLobby false: no longer), else its game's page (with the run, when its id is known: what it paid shows there), or Your games for a creator's playtest (its game is not published).
Parameters
run
Pick<{ debug?: boolean; game: string; id: string; lives?: { count: number; left?: number; per: "player" | "team"; }; mission: string; mode?: "solo" | "coop" | "versus"; phase: "gathering" | "countdown" | "live" | "ended"; playtest?: boolean; result?: { forfeit?: boolean; outcome: "complete" | "failed" | "abandoned" | "won" | "draw"; seats: object[]; seconds: number; winner?: string; }; retries: { left: number; total: number; }; seat?: number; seats: object[]; startsIn?: number; teams?: object[]; title: string; type: "run"; }, "game" | "playtest"> & object
search
string
inLobby?
boolean = true
Returns
string