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 Jul 26, 2024
1 parent d350da8 commit 1bc405b
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 @@ -876,6 +876,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 1bc405b

Please sign in to comment.