Skip to content

Commit

Permalink
fix background color changing to default if no value was set, version…
Browse files Browse the repository at this point in the history
… update for release
  • Loading branch information
Enubia committed Jun 8, 2020
1 parent f5761f0 commit 07a1d0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ghost-chat",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "Standalone twitch chat overlay",
"author": {
Expand Down
10 changes: 6 additions & 4 deletions src/renderer/pages/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ export default class Settings extends Vue {
this.$config.set('opacityLevel', this.opacityLevel);
this.$config.set('clickThrough', this.clickThrough);
this.$config.set('showBorders', this.showborders);
this.$config.set(
'backgroundColor',
this.newBackgroundColor.slice(1, this.newBackgroundColor.length).toLowerCase(),
);
if (this.newBackgroundColor) {
this.$config.set(
'backgroundColor',
this.newBackgroundColor.slice(1, this.newBackgroundColor.length).toLowerCase(),
);
}
if (process.env.NODE_ENV === 'production') {
ipcRenderer.send('relaunch');
Expand Down

0 comments on commit 07a1d0c

Please sign in to comment.