Skip to content

Commit

Permalink
perf(web-extension): conditional check (rrweb-io#1360)
Browse files Browse the repository at this point in the history
Co-authored-by: Yun Feng <yun.feng0817@gmail.com>
  • Loading branch information
2 people authored and jxiwang committed Jul 31, 2024
1 parent ec5e0ac commit d48125e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tidy-swans-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rrweb/web-extension': patch
---

🎈 perf(web-extension): conditional check in Player component
2 changes: 1 addition & 1 deletion packages/web-extension/src/pages/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Player() {
});
getEvents(sessionId)
.then((events) => {
if (!playerElRef.current || !sessionId) return;
if (!playerElRef.current) return;

const linkEl = document.createElement('link');
linkEl.href =
Expand Down

0 comments on commit d48125e

Please sign in to comment.