diff options
Diffstat (limited to 'src/util/http.ts')
-rw-r--r-- | src/util/http.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/http.ts b/src/util/http.ts index 93c748d79..1a5cb85fa 100644 --- a/src/util/http.ts +++ b/src/util/http.ts @@ -101,12 +101,12 @@ export class BrowserHttpLib implements HttpRequestLibrary { myRequest.send(); } - myRequest.onerror = e => { + myRequest.onerror = (e) => { console.error("http request error"); reject(Error("could not make XMLHttpRequest")); }; - myRequest.addEventListener("readystatechange", e => { + myRequest.addEventListener("readystatechange", (e) => { if (myRequest.readyState === XMLHttpRequest.DONE) { if (myRequest.status === 0) { reject( @@ -134,7 +134,7 @@ export class BrowserHttpLib implements HttpRequestLibrary { // Create a map of header names to values const headerMap = new Headers(); - arr.forEach(function(line) { + arr.forEach(function (line) { const parts = line.split(": "); const header = parts.shift(); const value = parts.join(": "); |