Function: findMoodleSite()
function findMoodleSite(url, fetchImpl?): Promise<string>;
Defined in: core/site.ts:22
The site's base URL for any URL of it (the site, a course, the login page), read from the
M.cfg.wwwroot Moodle puts in every page; fetched without the browser or any session. Throws
MoodleUrlError when it can't be reached or isn't a Moodle.
Parameters
| Parameter | Type | Default value |
|---|---|---|
url | string | undefined |
fetchImpl | (input, init?) => Promise<Response> | fetch |
Returns
Promise<string>