From 18117c3bfa4cae9542e49222aad058aa52929f18 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 13 Aug 2018 16:17:00 +0300 Subject: storing entire config instead of each separate thing of it, so that future options won't be lost during reloads because developer forgot to update that list of settings to be persisted --- src/main.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/main.js') diff --git a/src/main.js b/src/main.js index cb53edd3..50e5ea8d 100644 --- a/src/main.js +++ b/src/main.js @@ -45,15 +45,7 @@ Vue.use(VueChatScroll) const persistedStateOptions = { paths: [ - 'config.hideAttachments', - 'config.hideAttachmentsInConv', - 'config.hideNsfw', - 'config.autoLoad', - 'config.hoverPreview', - 'config.streaming', - 'config.muteWords', - 'config.customTheme', - 'config.highlight', + 'config', 'users.lastLoginName' ] } -- cgit v1.2.3-70-g09d2 From 99f849bd8c11763c80ebfcb605c4bea9115c747f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 18 Aug 2018 13:56:45 +0300 Subject: 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(-) (limited to 'src/main.js') 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: {} } -- cgit v1.2.3-70-g09d2