mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-19 05:52:11 +01:00
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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user