mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 17:14:36 +01:00
Formatting
This commit is contained in:
@@ -15,7 +15,7 @@ let defaultConfig: Configuration
|
||||
last_ip: 'localhost',
|
||||
last_port: '443',
|
||||
language: 'en',
|
||||
customBackground: '',
|
||||
custom_background: '',
|
||||
cert_generated: false,
|
||||
theme: 'default',
|
||||
https_enabled: false,
|
||||
@@ -43,7 +43,7 @@ export interface Configuration {
|
||||
last_ip: string
|
||||
last_port: string
|
||||
language: string
|
||||
customBackground: string
|
||||
custom_background: string
|
||||
cert_generated: boolean
|
||||
theme: string
|
||||
https_enabled: boolean
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user