Skip to content

Commit 06b005d

Browse files
Update api.ts
1 parent 870a793 commit 06b005d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/services/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ export type GetDownloadLinksResponse = { fileId: string; link: string; index: st
1515

1616
class InxtApi {
1717
protected config: EnvironmentConfig;
18+
protected url: string;
1819

1920
constructor(config: EnvironmentConfig) {
2021
this.config = config;
21-
this.config.bridgeUrl = config.bridgeUrl ?? '';
22+
this.url = config.bridgeUrl ?? '';
2223
}
2324
}
2425

@@ -30,10 +31,9 @@ class EmptyBridgeUrlError extends Error {
3031

3132
export class Bridge extends InxtApi {
3233
constructor(config: EnvironmentConfig) {
33-
if (!config.bridgeUrl) {
34+
if (config.bridgeUrl === '') {
3435
throw new EmptyBridgeUrlError();
3536
}
36-
3737
super(config);
3838
}
3939

0 commit comments

Comments
 (0)