Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Sep 29, 2024
1 parent 1a462da commit e865a45
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ import { browser } from "$lib/internal/utils/browser.js";
export class MediaQuery {
#propQuery: MaybeGetter<string>;
#query = $derived.by(() => extract(this.#propQuery));
#mediaQueryList = $derived.by(() => {
if (!browser) return null;
return window.matchMedia(this.#query);
});
#mediaQueryList = $derived(browser ? window.matchMedia(this.#query) : null);
#effectRegistered = 0;
#matches: boolean | undefined = $state();

Expand Down

0 comments on commit e865a45

Please sign in to comment.