more polish

This commit is contained in:
Marco Andronaco 2023-08-12 15:46:21 +02:00
parent bb331c5170
commit 5c052156e6
1 changed files with 2 additions and 4 deletions

View File

@ -260,16 +260,14 @@ function getArtworks() {
get_button.disabled = true; get_button.disabled = true;
get_button.innerText = "🔄" get_button.innerText = "🔄"
postData("/", { month: month_value }).then((data) => { postData("/", { month: month_value }).then((data) => {
fanarts.push(...data.map((element) => {
const new_data = data.map((element) => {
return { return {
...element, ...element,
"enabled": 1, "enabled": 1,
"rotated": 0, "rotated": 0,
"watermark": { invert: "" }, "watermark": { invert: "" },
}; };
}); }));
fanarts.push(...new_data);
controls_div.hidden = false; controls_div.hidden = false;
updateOpacity(); updateOpacity();
updateFanartList(); updateFanartList();