Skip to content

Commit

Permalink
fix: same event listener being added twice
Browse files Browse the repository at this point in the history
  • Loading branch information
VampireChicken12 committed Oct 9, 2023
1 parent 12b0289 commit cedb9d3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/features/maximizePlayerButton/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export async function addMaximizePlayerButton(): Promise<void> {
tooltip.textContent = title ?? "Maximize Player";
function mouseLeaveListener() {
tooltip.remove();
eventManager.addEventListener(maximizePlayerButton, "mouseleave", mouseLeaveListener, "maximizePlayerButton");
}
eventManager.addEventListener(maximizePlayerButton, "mouseleave", mouseLeaveListener, "maximizePlayerButton");
document.body.appendChild(tooltip);
Expand Down

0 comments on commit cedb9d3

Please sign in to comment.