fix: no-window lint error (#2272)
Latest PR runs are failing with linting errors, e.g. https://github.com/denoland/fresh/actions/runs/7625625084/job/20770308634?pr=2266 Maybe this shouldn't be happening like this right now, but we'll still need to clean these up eventually.
This commit is contained in:
@@ -74,7 +74,9 @@ function LemonDrop() {
|
||||
}, [width.value]);
|
||||
|
||||
useEffect(() => {
|
||||
const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
|
||||
const mediaQuery = globalThis.matchMedia(
|
||||
"(prefers-reduced-motion: reduce)",
|
||||
);
|
||||
if (mediaQuery.matches) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user