fix random bg1 not updating correctly

This commit is contained in:
RossAscends
2023-04-26 23:10:15 +09:00
parent 8f3da37c61
commit c354f8ee30
3 changed files with 6 additions and 6 deletions

View File

@ -959,7 +959,7 @@ app.post("/getuseravatars", jsonParser, function (request, response) {
});
app.post("/setbackground", jsonParser, function (request, response) {
var bg = "#bg1 {background-image: url(../backgrounds/" + request.body.bg + ");}";
var bg = "#bg1 {background-image: url('../backgrounds/" + request.body.bg + "');}";
fs.writeFile('public/css/bg_load.css', bg, 'utf8', function (err) {
if (err) {
response.send(err);