@halibegic/react-video-player 0.0.29 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2484,11 +2484,13 @@ function xl(e, {
2484
2484
  defaultValue: t = !1,
2485
2485
  initializeWithValue: l = !0
2486
2486
  } = {}) {
2487
- const n = (b) => window.matchMedia(b).matches, [i, a] = M(() => l ? n(e) : t);
2487
+ const n = (b) => typeof window == "undefined" ? t : window.matchMedia(b).matches, [i, a] = M(() => l ? n(e) : t);
2488
2488
  function r() {
2489
2489
  a(n(e));
2490
2490
  }
2491
2491
  return Et(() => {
2492
+ if (typeof window == "undefined")
2493
+ return;
2492
2494
  const b = window.matchMedia(e);
2493
2495
  return r(), b.addListener ? b.addListener(r) : b.addEventListener("change", r), () => {
2494
2496
  b.removeListener ? b.removeListener(r) : b.removeEventListener("change", r);