Skip to content

Commit

Permalink
fix(rrweb): fix external function wrapper usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jackson-amplitude committed Jun 6, 2024
1 parent ec2e864 commit 3ed0f50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rrweb/src/record/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ function initStyleSheetObserver(
adds: [{ rule, index }],
});
}
return externalFunctionWrapper(target.apply)(thisArg, argumentsList);
return externalFunctionWrapper(() => target.apply(thisArg, argumentsList))();
},
),
});
Expand Down Expand Up @@ -694,7 +694,7 @@ function initStyleSheetObserver(
removes: [{ index }],
});
}
return externalFunctionWrapper(target.apply)(thisArg, argumentsList);
return externalFunctionWrapper(() => target.apply(thisArg, argumentsList))();
},
),
});
Expand Down Expand Up @@ -726,7 +726,7 @@ function initStyleSheetObserver(
replace: text,
});
}
return externalFunctionWrapper(target.apply)(thisArg, argumentsList);
return target.apply(thisArg, argumentsList);
},
),
});
Expand Down

0 comments on commit 3ed0f50

Please sign in to comment.