mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-17 03:31:52 +00:00
fixed typo in variable name
This commit is contained in:
@@ -140,13 +140,13 @@ class Main extends React.Component {
|
|||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
const { dispatch, config } = this.props
|
const { dispatch, config } = this.props
|
||||||
|
|
||||||
const supportedTheme = [
|
const supportedThemes = [
|
||||||
'dark',
|
'dark',
|
||||||
'white',
|
'white',
|
||||||
'solarized-dark'
|
'solarized-dark'
|
||||||
]
|
]
|
||||||
|
|
||||||
if (supportedTheme.indexOf(config.ui.theme) !== -1) {
|
if (supportedThemes.indexOf(config.ui.theme) !== -1) {
|
||||||
document.body.setAttribute('data-theme', config.ui.theme)
|
document.body.setAttribute('data-theme', config.ui.theme)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user