@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.
package/dist/rrweb.cjs CHANGED
@@ -11718,14 +11718,14 @@ function initScrollObserver({
11718
11718
  );
11719
11719
  return on("scroll", updatePosition, doc);
11720
11720
  }
11721
- function initViewportResizeObserver({ viewportResizeCb }, { win }) {
11721
+ function initViewportResizeObserver({ viewportResizeCb, win: _win }, { win }) {
11722
11722
  let lastH = -1;
11723
11723
  let lastW = -1;
11724
11724
  const updateDimension = callbackWrapper(
11725
11725
  throttle(
11726
11726
  callbackWrapper(() => {
11727
- const height = getWindowHeight(win);
11728
- const width = getWindowWidth(win);
11727
+ const height = getWindowHeight(_win);
11728
+ const width = getWindowWidth(_win);
11729
11729
  if (lastH !== height || lastW !== width) {
11730
11730
  viewportResizeCb({
11731
11731
  width: Number(width),