Skip to content

Commit

Permalink
perf(web-extension): conditional check (#1360)
Browse files Browse the repository at this point in the history
Co-authored-by: Yun Feng <yun.feng0817@gmail.com>
  • Loading branch information
huangkairan and YunFeng0817 authored Dec 4, 2023
1 parent 59208ad commit 0f004af
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 0f004af

Please sign in to comment.