tlisaMelaYaMokwalo
→ loadStrings()Loads lines of text.
tlisaMelaYaMokwalo(URL, [faGoSiame], [faGoPalelwa])Returns a Promise; use letela inside a function. External URLs are allowed without an endpoint allowlist or proxy. Browser CORS, mixed-content and credential rules still apply. JSON object keys remain unchanged. Resolves to an array split at LF or CRLF. A trailing newline produces a final empty string.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
URL | `mokwalo | Request` |
faGoSiame (optional) | tiro | Success callback. Its return becomes the Promise value. |
faGoPalelwa (optional) | tiro | Error callback; returning recovers the Promise, throwing rejects it. |
Examples
Section titled “Examples”tiro setaLoeto() {
tlosaKanefase();
diri d = letela tlisaMelaYaMokwalo("data:text/plain,Dumela%0ALefatshe");
bopaTemana(d[0]);
}