aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakaba Hitoyo <example@example.com>2018-08-26 06:56:52 +0900
committerHakaba Hitoyo <example@example.com>2018-08-26 06:56:52 +0900
commita3cc78115ce36d1db7ff6fdad65683ebd28f133c (patch)
treec19ef64c001dfabeea314beb424cb9037b825541
parenta81c3b1324f496d8571ca4372299c9bb4a263d1a (diff)
rename apiStatusnetConfigSitePleromafe to apiConfig
-rw-r--r--src/main.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main.js b/src/main.js
index e4a96c55..8681e960 100644
--- a/src/main.js
+++ b/src/main.js
@@ -96,23 +96,23 @@ window.fetch('/api/statusnet/config.json')
window.fetch('/api/statusnet/config.json')
.then((res) => res.json())
.then((data) => {
- var apiStatusnetConfigSitePleromafe = data.site.pleromafe
+ var apiConfig = data.site.pleromafe
window.fetch('/static/config.json')
.then((data) => {
var staticConfig = data
- var theme = (apiStatusnetConfigSitePleromafe.theme || staticConfig.theme)
- var background = (apiStatusnetConfigSitePleromafe.background || staticConfig.background)
- var logo = (apiStatusnetConfigSitePleromafe.logo || staticConfig.logo)
- var redirectRootNoLogin = (apiStatusnetConfigSitePleromafe.redirectRootNoLogin || staticConfig.redirectRootNoLogin)
- var redirectRootLogin = (apiStatusnetConfigSitePleromafe.redirectRootLogin || staticConfig.redirectRootLogin)
- var chatDisabled = (apiStatusnetConfigSitePleromafe.chatDisabled || staticConfig.chatDisabled)
- var showWhoToFollowPanel = (apiStatusnetConfigSitePleromafe.showWhoToFollowPanel || staticConfig.showWhoToFollowPanel)
- var whoToFollowProvider = (apiStatusnetConfigSitePleromafe.whoToFollowProvider || staticConfig.whoToFollowProvider)
- var whoToFollowLink = (apiStatusnetConfigSitePleromafe.whoToFollowLink || staticConfig.whoToFollowLink)
- var showInstanceSpecificPanel = (apiStatusnetConfigSitePleromafe.showInstanceSpecificPanel || staticConfig.showInstanceSpecificPanel)
- var scopeOptionsEnabled = (apiStatusnetConfigSitePleromafe.scopeOptionsEnabled || staticConfig.scopeOptionsEnabled)
- var collapseMessageWithSubject = (apiStatusnetConfigSitePleromafe.collapseMessageWithSubject || staticConfig.collapseMessageWithSubject)
+ var theme = (apiConfig.theme || staticConfig.theme)
+ var background = (apiConfig.background || staticConfig.background)
+ var logo = (apiConfig.logo || staticConfig.logo)
+ var redirectRootNoLogin = (apiConfig.redirectRootNoLogin || staticConfig.redirectRootNoLogin)
+ var redirectRootLogin = (apiConfig.redirectRootLogin || staticConfig.redirectRootLogin)
+ var chatDisabled = (apiConfig.chatDisabled || staticConfig.chatDisabled)
+ var showWhoToFollowPanel = (apiConfig.showWhoToFollowPanel || staticConfig.showWhoToFollowPanel)
+ var whoToFollowProvider = (apiConfig.whoToFollowProvider || staticConfig.whoToFollowProvider)
+ var whoToFollowLink = (apiConfig.whoToFollowLink || staticConfig.whoToFollowLink)
+ var showInstanceSpecificPanel = (apiConfig.showInstanceSpecificPanel || staticConfig.showInstanceSpecificPanel)
+ var scopeOptionsEnabled = (apiConfig.scopeOptionsEnabled || staticConfig.scopeOptionsEnabled)
+ var collapseMessageWithSubject = (apiConfig.collapseMessageWithSubject || staticConfig.collapseMessageWithSubject)
store.dispatch('setOption', { name: 'theme', value: theme })
store.dispatch('setOption', { name: 'background', value: background })