From 99f849bd8c11763c80ebfcb605c4bea9115c747f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 18 Aug 2018 13:56:45 +0300 Subject: [PATCH] Revert "storing entire config instead of each separate thing of it, so that future" This reverts commit 18117c3bfa4cae9542e49222aad058aa52929f18. b/c something else uses same field but i want to fix that in another MR --- src/main.js | 14 +++++++++++++- src/modules/config.js | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 50e5ea8d..df271ce3 100644 --- a/src/main.js +++ b/src/main.js @@ -45,7 +45,19 @@ Vue.use(VueChatScroll) const persistedStateOptions = { paths: [ - 'config', + 'config.hideAttachments', + 'config.hideAttachmentsInConv', + 'config.hideNsfw', + 'config.autoLoad', + 'config.hoverPreview', + 'config.streaming', + 'config.muteWords', + 'config.customTheme', + 'config.highlight', + 'config.loopVideo', + 'config.loopVideoSilentOnly', + 'config.pauseOnUnfocused', + 'config.stopGifs', 'users.lastLoginName' ] } diff --git a/src/modules/config.js b/src/modules/config.js index 26930e1d..fe31ab01 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -13,6 +13,7 @@ const defaultState = { streaming: false, hoverPreview: true, pauseOnUnfocused: true, + stopGifs: false, muteWords: [], highlight: {} }