feat(background): updated the name of background options

This commit is contained in:
Haoyu Xu
2023-01-19 18:29:32 -05:00
parent f18b5a6116
commit d0bdc2b9e6
4 changed files with 17 additions and 15 deletions

View File

@@ -126,7 +126,7 @@ export default class Settings {
}
setDefaultBackground(e) {
const backgroundURL = `url("${import.meta.env.BASE_URL}assets/${e}")`
const backgroundURL = `url("${import.meta.env.BASE_URL}assets/${import.meta.env.VITE_BACKGROUND_FOLDER}/${e}")`
if (document.getElementById("custom_background_clear").disabled && !document.body.style.backgroundImage.startsWith("url(\"file:")) {
this.setBackgoundImage(backgroundURL)
}