perf(web-extension): conditional check (#1360)

Co-authored-by: Yun Feng <yun.feng0817@gmail.com>
This commit is contained in:
huangkairan
2023-12-04 18:45:53 +08:00
committed by GitHub
parent 59208ad0f5
commit 0f004af18d
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'@rrweb/web-extension': patch
---
🎈 perf(web-extension): conditional check in Player component

View File

@@ -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 =