Skip to content

Commit

Permalink
Improve isUsingProxy function
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield committed Mar 14, 2024
1 parent ddea077 commit 7bf288e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/request-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class RequestRouter {
}

isUsingProxy(): boolean {
return this.apiHost !== defaultConfig().api_host
return this.instance.config.api_host != null && this.instance.config.api_host !== defaultConfig().api_host
}

endpointFor(target: RequestRouterTarget, path: string = ''): string {
Expand Down

0 comments on commit 7bf288e

Please sign in to comment.