Change the async stuff to not render app before theme is loaded
This commit is contained in:
parent
9516d5dd73
commit
3fb531976a
4 changed files with 9 additions and 5 deletions
|
@ -480,7 +480,7 @@ const getThemes = () => {
|
|||
}
|
||||
|
||||
const setPreset = (val, commit) => {
|
||||
getThemes().then((themes) => {
|
||||
return getThemes().then((themes) => {
|
||||
const theme = themes[val] ? themes[val] : themes['pleroma-dark']
|
||||
const isV1 = Array.isArray(theme)
|
||||
const data = isV1 ? {} : theme.theme
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue