@screeb/rrweb 1.0.3 → 1.0.4

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.
@@ -11751,14 +11751,14 @@ function initScrollObserver({
11751
11751
  );
11752
11752
  return on("scroll", updatePosition, doc);
11753
11753
  }
11754
- function initViewportResizeObserver({ viewportResizeCb }, { win }) {
11754
+ function initViewportResizeObserver({ viewportResizeCb, win: _win }, { win }) {
11755
11755
  let lastH = -1;
11756
11756
  let lastW = -1;
11757
11757
  const updateDimension = callbackWrapper(
11758
11758
  throttle(
11759
11759
  callbackWrapper(() => {
11760
- const height = getWindowHeight(win);
11761
- const width = getWindowWidth(win);
11760
+ const height = getWindowHeight(_win);
11761
+ const width = getWindowWidth(_win);
11762
11762
  if (lastH !== height || lastW !== width) {
11763
11763
  viewportResizeCb({
11764
11764
  width: Number(width),