From 288a8edf9dbd69c9a9416abcaad5a1d7eba8ee17 Mon Sep 17 00:00:00 2001 From: eal Date: Mon, 4 Sep 2017 17:28:49 +0300 Subject: [PATCH] Avoid theme reload --- src/App.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 90fa041184..f503b8b61a 100644 --- a/src/App.js +++ b/src/App.js @@ -15,8 +15,9 @@ export default { mobileActivePanel: 'timeline' }), created () { - if (this.$store.state.config.savedTheme) { - this.$store.dispatch('setOption', { name: 'theme', value: this.$store.config.savedTheme }) + const savedTheme = this.$store.state.config.savedTheme + if (savedTheme && (savedTheme !== this.$store.config.theme)) { + this.$store.dispatch('setOption', { name: 'theme', value: savedTheme }) } }, computed: {