forked from rDrama/rDrama
fix picking background
parent
4480e454f8
commit
b18e43487c
|
@ -92,6 +92,7 @@ function updatebgselection(){
|
||||||
str += `<button class="btn btn-secondary bg-button"><img loading="lazy" class='bg-image' src="/i/backgrounds/${bgsDir}/${bgsToDisplay[i]}?v=2000" alt="${bgsToDisplay[i]}-background" data-nonce="${nonce}" data-onclick="post('/settings/personal?background=${onclickPost}')"></button>`;
|
str += `<button class="btn btn-secondary bg-button"><img loading="lazy" class='bg-image' src="/i/backgrounds/${bgsDir}/${bgsToDisplay[i]}?v=2000" alt="${bgsToDisplay[i]}-background" data-nonce="${nonce}" data-onclick="post('/settings/personal?background=${onclickPost}')"></button>`;
|
||||||
}
|
}
|
||||||
bgContainer.innerHTML = str;
|
bgContainer.innerHTML = str;
|
||||||
|
register_new_elements(bgContainer);
|
||||||
}
|
}
|
||||||
updatebgselection();
|
updatebgselection();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue