summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/apis/index.ts
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-08-18 07:18:13 -0400
committermorpheus65535 <[email protected]>2021-08-18 07:18:13 -0400
commit66fe98d5a4ad633425fa17f55242295c9abd8439 (patch)
tree54755a5fea2b71494a0babab2cc25dba2291ba55 /frontend/src/apis/index.ts
parent79621a08716d64dff3a80b00ef15acd605068387 (diff)
parent70cb16f0a284c36dcb8cfbaf3bc467d426fbcfe3 (diff)
downloadbazarr-44b9bd83e8b253becdd01669034bd13fd4ca0e4c.tar.gz
bazarr-44b9bd83e8b253becdd01669034bd13fd4ca0e4c.zip
Merge remote-tracking branch 'origin/development' into developmentv0.9.8-beta.4
Diffstat (limited to 'frontend/src/apis/index.ts')
-rw-r--r--frontend/src/apis/index.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/apis/index.ts b/frontend/src/apis/index.ts
index eb91fe87c..9c66aa4ab 100644
--- a/frontend/src/apis/index.ts
+++ b/frontend/src/apis/index.ts
@@ -52,8 +52,10 @@ class Api {
);
}
- danger_resetApi(apikey: string) {
- this.axios.defaults.headers.common["X-API-KEY"] = apikey;
+ _resetApi(apikey: string) {
+ if (process.env.NODE_ENV !== "production") {
+ this.axios.defaults.headers.common["X-API-KEY"] = apikey;
+ }
}
handleError(code: number) {