We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 870a793 commit 06b005dCopy full SHA for 06b005d
1 file changed
src/services/api.ts
@@ -15,10 +15,11 @@ export type GetDownloadLinksResponse = { fileId: string; link: string; index: st
15
16
class InxtApi {
17
protected config: EnvironmentConfig;
18
+ protected url: string;
19
20
constructor(config: EnvironmentConfig) {
21
this.config = config;
- this.config.bridgeUrl = config.bridgeUrl ?? '';
22
+ this.url = config.bridgeUrl ?? '';
23
}
24
25
@@ -30,10 +31,9 @@ class EmptyBridgeUrlError extends Error {
30
31
32
export class Bridge extends InxtApi {
33
- if (!config.bridgeUrl) {
34
+ if (config.bridgeUrl === '') {
35
throw new EmptyBridgeUrlError();
36
-
37
super(config);
38
39
0 commit comments