mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
fixed eslint error
This commit is contained in:
@@ -148,8 +148,7 @@ class Main extends React.Component {
|
|||||||
|
|
||||||
if (supportedThemes.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 {
|
|
||||||
document.body.setAttribute('data-theme', 'default')
|
document.body.setAttribute('data-theme', 'default')
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,9 +171,8 @@ class Main extends React.Component {
|
|||||||
|
|
||||||
if (supportedLanguages.indexOf(config.ui.language) !== -1) {
|
if (supportedLanguages.indexOf(config.ui.language) !== -1) {
|
||||||
i18n.setLocale(config.ui.language)
|
i18n.setLocale(config.ui.language)
|
||||||
}
|
} else {
|
||||||
else {
|
i18n.setLocale('en')
|
||||||
i18n.setLocale('en');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reload all data
|
// Reload all data
|
||||||
|
|||||||
Reference in New Issue
Block a user