Formatting

This commit is contained in:
Thoronium
2023-04-26 23:05:36 -06:00
parent b34f71a301
commit 4631a6d38d
7 changed files with 19 additions and 19 deletions

View File

@@ -112,8 +112,8 @@ export async function loadTheme(theme: ThemeList, document: Document) {
// Set custom background
if (theme.customBackgroundURL) {
// If the custom bg is already set don't overwrite
if (config.customBackground === '') {
config.customBackground = theme.customBackgroundURL
if (config.custom_background === '') {
config.custom_background = theme.customBackgroundURL
}
}
@@ -130,13 +130,13 @@ export async function loadTheme(theme: ThemeList, document: Document) {
// Set the background
// If the custom bg is already set don't overwrite
if (config.customBackground === '') {
config.customBackground = bgPath + imageName
if (config.custom_background === '') {
config.custom_background = bgPath + imageName
}
}
// Write config
await setConfigOption('customBackground', config.customBackground)
await setConfigOption('custom_background', config.custom_background)
return
}