We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d238191 commit 2ebf5abCopy full SHA for 2ebf5ab
packages/rrweb-snapshot/src/rebuild.ts
@@ -380,13 +380,11 @@ function buildNode(
380
*/
381
if (!node.shadowRoot) {
382
node.attachShadow({ mode: 'open' });
383
- n.rrwebAdoptedStylesheets?.forEach(
384
- (rrwebAdoptedStylesheet) => {
385
- const styleSheet = new CSSStyleSheet();
386
- styleSheet.replaceSync(rrwebAdoptedStylesheet);
387
- node.shadowRoot?.adoptedStyleSheets.push(styleSheet);
388
- },
389
- );
+ n.rrwebAdoptedStylesheets?.forEach((rrwebAdoptedStylesheet) => {
+ const styleSheet = new CSSStyleSheet();
+ styleSheet.replaceSync(rrwebAdoptedStylesheet);
+ node.shadowRoot?.adoptedStyleSheets.push(styleSheet);
+ });
390
} else {
391
while (node.shadowRoot.firstChild) {
392
node.shadowRoot.removeChild(node.shadowRoot.firstChild);
0 commit comments