From 3534a9a62ff9011e44a92f6ba4944155908325cb Mon Sep 17 00:00:00 2001 From: shpuld Date: Sat, 18 Nov 2017 13:27:37 +0200 Subject: Make defaulting to pleroma-dark work when config.json has an invalid theme. Remove logging. --- src/components/style_switcher/style_switcher.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/components/style_switcher/style_switcher.js') diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js index 8bed17cc..b1359d13 100644 --- a/src/components/style_switcher/style_switcher.js +++ b/src/components/style_switcher/style_switcher.js @@ -15,7 +15,6 @@ export default { window.fetch('/static/styles.json') .then((data) => data.json()) .then((themes) => { - console.log(themes) self.availableStyles = themes }) }, @@ -29,8 +28,6 @@ export default { } this.bgColorLocal = rgbstr2hex(this.$store.state.config.colors['base00']) this.fgColorLocal = rgbstr2hex(this.$store.state.config.colors['base02']) - console.log(this.$store.state.config.colors['base02']) - console.log(this.fgColorLocal) this.textColorLocal = rgbstr2hex(this.$store.state.config.colors['base05']) this.linkColorLocal = rgbstr2hex(this.$store.state.config.colors['base08']) }, @@ -52,7 +49,6 @@ export default { const textRgb = rgb(this.textColorLocal) const linkRgb = rgb(this.linkColorLocal) if (bgRgb && fgRgb && linkRgb) { - console.log('all colors ok') this.$store.dispatch('setOption', { name: 'customTheme', value: { -- cgit v1.2.3-70-g09d2