diff --git a/public/script.js b/public/script.js index b63642410..febe2612d 100644 --- a/public/script.js +++ b/public/script.js @@ -962,7 +962,7 @@ async function getBackgrounds() { const getData = await response.json(); //background = getData; //console.log(getData.length); - $("#bg_menu_content").empty(); + $("#bg_menu_content").children('div').remove(); for (const bg of getData) { const template = getBackgroundFromTemplate(bg); $("#bg_menu_content").append(template);