Skip to content

Commit

Permalink
Merge pull request #122 from EyeSeeTea/feature/fetch-backend-default
Browse files Browse the repository at this point in the history
  • Loading branch information
SferaDev authored Feb 1, 2022
2 parents 7cb8f6c + 8e6ac5a commit bcc6b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/d2Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class D2ApiGeneric {
apiConnection: HttpClientRepository;

public constructor(options?: D2ApiOptions) {
const { baseUrl = "http://localhost:8080", apiVersion, auth, backend = "xhr", timeout } =
const { baseUrl = "http://localhost:8080", apiVersion, auth, backend = "fetch", timeout } =
options || {};
this.baseUrl = baseUrl;
this.apiPath = joinPath(baseUrl, "api", apiVersion ? String(apiVersion) : null);
Expand Down

0 comments on commit bcc6b19

Please sign in to comment.