diff options
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js index d4fbaa7b..87dc49df 100644 --- a/src/main.js +++ b/src/main.js @@ -49,6 +49,7 @@ const persistedStateOptions = { 'config.hideAttachments', 'config.hideAttachmentsInConv', 'config.hideNsfw', + 'config.replyVisibility', 'config.autoLoad', 'config.hoverPreview', 'config.streaming', @@ -192,3 +193,12 @@ window.fetch('/instance/panel.html') .then((html) => { store.dispatch('setOption', { name: 'instanceSpecificPanelContent', value: html }) }) + +window.fetch('/nodeinfo/2.0.json') + .then((res) => res.json()) + .then((data) => { + const suggestions = data.metadata.suggestions + store.dispatch('setOption', { name: 'suggestionsEnabled', value: suggestions.enabled }) + store.dispatch('setOption', { name: 'suggestionsWeb', value: suggestions.web }) + }) + |
