diff options
author | LASER-Yi <[email protected]> | 2021-08-18 08:26:52 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2021-08-18 08:26:52 +0800 |
commit | 70cb16f0a284c36dcb8cfbaf3bc467d426fbcfe3 (patch) | |
tree | 25378746801c11a5a6cd27ff552013091ed304e4 /frontend/src/apis/index.ts | |
parent | 2f6206f3a66ea2c424cfc39ca2100d95bd4b062d (diff) | |
download | bazarr-70cb16f0a284c36dcb8cfbaf3bc467d426fbcfe3.tar.gz bazarr-70cb16f0a284c36dcb8cfbaf3bc467d426fbcfe3.zip |
Fix some visual bugs of the notification centerv0.9.8-beta.3
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) { |