Function: readMoodleConfig()
function readMoodleConfig(html): Record<string, unknown> | undefined;
Defined in: core/session.ts:96
M.cfg as a Moodle page's HTML sets it (M.cfg = {…};), parsed; undefined when it has none.
Parameters
| Parameter | Type |
|---|---|
html | string |
Returns
Record<string, unknown> | undefined