do not use function as fetch argument, use the resulting object

This should fix the login problem "Error: e._links.me is undefined" on older firefox browsers such as 56.0.2
This commit is contained in:
Sebastian Sdorra
2019-09-26 15:42:21 +02:00
parent 62a0a5a127
commit 689e3fa17e

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") {