Skip to content

Commit

Permalink
chore: Run prettier manually??
Browse files Browse the repository at this point in the history
  • Loading branch information
koerismo committed Jul 30, 2024
1 parent ebc35a3 commit 45079a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/gameselector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export class GameSelector {
this.gameListElement = this.element.querySelector('.game-list');

// Bind relevant events
window.addEventListener('click', event => {
window.addEventListener('click', (event) => {
if (!(event.target instanceof HTMLElement)) return;
if (event.target === this.element || event.target === this.element.firstElementChild) return this.toggle();
if (this.element.contains(event.target)) return;
this.hide();
});

window.addEventListener('keydown', event => {
window.addEventListener('keydown', (event) => {
if (event.key === 'Escape') this.hide();
});
}
Expand Down

0 comments on commit 45079a4

Please sign in to comment.