aboutsummaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shpuld@gmail.com>2017-06-19 16:35:35 +0300
committerShpuld Shpuldson <shpuld@gmail.com>2017-06-19 16:35:35 +0300
commitbfbc94d697df9e80e0454fbae776b6dec85dfc9b (patch)
tree177ce10e498b574a1c74e4c5b48d2885f05a57c5 /src/main.js
parent95605c32f1a8d08d72eb60d34abead6067b79841 (diff)
Move customizable terms-of-service into its separate .html file.
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js
index dd59dea7..52b820c2 100644
--- a/src/main.js
+++ b/src/main.js
@@ -86,9 +86,15 @@ new Vue({
window.fetch('/static/config.json')
.then((res) => res.json())
- .then(({name, theme, background, logo}) => {
+ .then(({name, theme, background, logo, tos}) => {
store.dispatch('setOption', { name: 'name', value: name })
store.dispatch('setOption', { name: 'theme', value: theme })
store.dispatch('setOption', { name: 'background', value: background })
store.dispatch('setOption', { name: 'logo', value: logo })
})
+
+window.fetch('/static/terms-of-service.html')
+ .then((res) => res.text())
+ .then((html) => {
+ store.dispatch('setOption', { name: 'tos', value: html })
+ })