Update contrast on the burger button. fix error thrown by update_select

This commit is contained in:
jude
2023-07-23 16:15:24 +01:00
parent 5ac9733f15
commit 5671fd462b
3 changed files with 14 additions and 0 deletions

View File

@ -62,6 +62,10 @@ function update_select(sel) {
channelDisplay.textContent = `#${sel.selectedOptions[0].textContent}`;
}
if (sel.selectedOptions[0] === null) {
return;
}
if (sel.selectedOptions[0].dataset["webhookAvatar"]) {
sel.closest("div.reminderContent").querySelector("img.discord-avatar").src =
sel.selectedOptions[0].dataset["webhookAvatar"];