diff --git a/.changeset/tidy-swans-repair.md b/.changeset/tidy-swans-repair.md new file mode 100644 index 0000000000..c0a2eeb212 --- /dev/null +++ b/.changeset/tidy-swans-repair.md @@ -0,0 +1,5 @@ +--- +'@rrweb/web-extension': patch +--- + +🎈 perf(web-extension): conditional check in Player component diff --git a/packages/web-extension/src/pages/Player.tsx b/packages/web-extension/src/pages/Player.tsx index b9744a8fa4..df0bf0aadf 100644 --- a/packages/web-extension/src/pages/Player.tsx +++ b/packages/web-extension/src/pages/Player.tsx @@ -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 =