Merged in bugfix/firefox_56_login (pull request #329)

do not use function as fetch argument, use the resulting object
This commit is contained in:
Rene Pfeuffer
2019-10-02 08:21:18 +00:00

View File

@@ -46,7 +46,7 @@ export function createUrl(url: string) {
class ApiClient {
get(url: string): Promise<Response> {
return fetch(createUrl(url), applyFetchOptions).then(handleFailure);
return fetch(createUrl(url), applyFetchOptions({})).then(handleFailure);
}
post(url: string, payload: any, contentType: string = "application/json") {