mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 04:03:06 +00:00
use default theme
This commit is contained in:
parent
6393d33cad
commit
e38dfa1b59
1 changed files with 2 additions and 1 deletions
|
@ -79,6 +79,7 @@ export default {
|
|||
const hasPlatform = this.platform && this.platform.code;
|
||||
const hasTheme = hasPlatform
|
||||
&& this.settings
|
||||
&& this.settings.theme
|
||||
&& this.settings.theme[this.platform.code];
|
||||
|
||||
const isGameBoard = this.$route.name === 'game-board';
|
||||
|
@ -86,7 +87,7 @@ export default {
|
|||
const hasPlatformTheme = hasPlatform && hasTheme;
|
||||
|
||||
return isGameBoard && hasPlatformTheme
|
||||
? `theme-${this.settings.theme[this.platform.code]}`
|
||||
? this.settings.theme[this.platform.code]
|
||||
: 'theme-default';
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue