aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/index.js
diff options
context:
space:
mode:
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