Skip to content

Commit

Permalink
ion know what im doing
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Dec 19, 2024
1 parent 0f49c0a commit 8e4128f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ function mediaBarSetup(bar) {
mediaBtns[0].addEventListener("click", (e) => {
// TODO reset media
const parent = e.target.parentNode;
console.log(parent.previousElementSibling.tagName);
if (parent.previousElementSibling.tagName !== "I") parent.remove();
if (parent.previousElementSibling.previousElementSibling.tagName !== "I") parent.remove();
e.stopPropagation();
});
mediaBtns[1].addEventListener("change", (e) => {
console.log(e);
e.stopPropagation();
});
mediaBtns[2].addEventListener("change", (e) => {
Expand Down

0 comments on commit 8e4128f

Please sign in to comment.