Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi committed Oct 5, 2024
1 parent bc052c9 commit 725935a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/Konami/Konami.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export class Konami {
return;
}

on(window, 'keyup', (_event) => {
const { key } = _event as KeyboardEvent;
on(window, 'keyup', ({ key }) => {
const now = Date.now();

/** 有効なキーが入力されていない場合はコンボをリセット */
Expand Down
3 changes: 1 addition & 2 deletions src/lib/utils/runes.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export class PrefersReducedMotion {

this.#mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
this.#isReduced = this.#mediaQuery.matches;
on(this.#mediaQuery, 'change', (_event) => {
const event = _event as MediaQueryListEvent;
on(this.#mediaQuery, 'change', (event) => {
this.#isReduced = event.matches;
});
}
Expand Down

0 comments on commit 725935a

Please sign in to comment.