mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-11-06 01:13:57 +03:00
unnecessary garbage has been removed
This commit is contained in:
parent
ea9931dc83
commit
416e14b418
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,6 @@ var SettingsUpdate = func(w http.ResponseWriter, r *http.Request) {
|
|||
wallpaper := r.FormValue("wallpaper")
|
||||
startup := r.FormValue("startup")
|
||||
|
||||
fmt.Println("S: "+startup, "W: "+wallpaper)
|
||||
|
||||
if startup == "" && wallpaper == "" {
|
||||
utils.Respond(w, utils.Message(false, "All fields are required."))
|
||||
return
|
||||
|
@ -63,6 +61,7 @@ var SettingsUpdate = func(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
if wallpaper == "1" {
|
||||
fmt.Println("Wallpaper enabled")
|
||||
go functions.StartWallpaper()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue