Skip to content

Commit

Permalink
Unrelated, but the presence of a blank <style></style> element when…
Browse files Browse the repository at this point in the history
… checking the replay took me ages to debug as I thought it was something I introducedg
  • Loading branch information
eoghanmurray committed May 13, 2024
1 parent d8f55d3 commit 55529cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rrweb/src/replay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,9 @@ export class Replayer {
'html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }',
);
}
if (!injectStylesRules.length) {
return;
}
if (this.usingVirtualDom) {
const styleEl = this.virtualDom.createElement('style');
this.virtualDom.mirror.add(
Expand Down

0 comments on commit 55529cc

Please sign in to comment.