Don't remove bg uploader on backgrounds render

This commit is contained in:
Cohee 2023-07-20 23:11:37 +03:00
parent d2e58c3455
commit a81b0dba2f
1 changed files with 1 additions and 1 deletions

View File

@ -962,7 +962,7 @@ async function getBackgrounds() {
const getData = await response.json(); const getData = await response.json();
//background = getData; //background = getData;
//console.log(getData.length); //console.log(getData.length);
$("#bg_menu_content").empty(); $("#bg_menu_content").children('div').remove();
for (const bg of getData) { for (const bg of getData) {
const template = getBackgroundFromTemplate(bg); const template = getBackgroundFromTemplate(bg);
$("#bg_menu_content").append(template); $("#bg_menu_content").append(template);