aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/index.js
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2024-06-05 13:02:34 +0300
committerTulir Asokan <tulir@maunium.net>2024-06-05 13:02:34 +0300
commitdbc3a9fbb8017cf91404d50be9986b89a1a56275 (patch)
tree4a4c24de7a8e129294ecc0edfbb6e7f610bd1a35 /web/src/index.js
parent47f17fde452b5e9f0c9e96ce0e2c878dd0574b7f (diff)
Don't prompt for giphy api key by default
Diffstat (limited to 'web/src/index.js')
-rw-r--r--web/src/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/src/index.js b/web/src/index.js
index ff570da..273ad7e 100644
--- a/web/src/index.js
+++ b/web/src/index.js
@@ -166,7 +166,9 @@ class App extends Component {
}
const indexData = await indexRes.json()
HOMESERVER_URL = indexData.homeserver_url || HOMESERVER_URL
- setGiphyAPIKey(indexData.giphy_api_key, indexData.giphy_mxc_prefix)
+ if (indexData.giphy_api_key !== undefined) {
+ setGiphyAPIKey(indexData.giphy_api_key, indexData.giphy_mxc_prefix)
+ }
// TODO only load pack metadata when scrolled into view?
for (const packFile of indexData.packs) {
let packRes
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage