diff options
author | morpheus65535 <[email protected]> | 2021-08-18 07:18:13 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-08-18 07:18:13 -0400 |
commit | 66fe98d5a4ad633425fa17f55242295c9abd8439 (patch) | |
tree | 54755a5fea2b71494a0babab2cc25dba2291ba55 /frontend/src/apis/index.ts | |
parent | 79621a08716d64dff3a80b00ef15acd605068387 (diff) | |
parent | 70cb16f0a284c36dcb8cfbaf3bc467d426fbcfe3 (diff) | |
download | bazarr-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.ts | 6 |
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) { |