fix console error

master
Aevann 2023-01-01 12:55:30 +02:00
parent 681171b3e9
commit 82dd09c651
1 changed files with 4 additions and 1 deletions

View File

@ -92,7 +92,10 @@ 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>`;
}
bgContainer.innerHTML = str;
register_new_elements(bgContainer);
if (typeof register_new_elements === "function") {
register_new_elements(bgContainer)
}
}
updatebgselection();