Evaluate JavaScript in the client page
lol_evalEvaluate JavaScript expressions in the League client's UI context to fetch LCU endpoints directly, bypassing write restrictions when allowEval is enabled.
Instructions
Evaluate an expression in the client UI's own context and return its value. Because the page can fetch any LCU endpoint from its own origin, this bypasses the write allowlist by construction — it is gated by the allowEval config flag, whose state lol_status reports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | a JavaScript expression, not a statement list | |
| awaitPromise | No | true to await a returned promise |