Skip to content

Commit 2ebf5ab

Browse files
committed
Prettier ran
1 parent d238191 commit 2ebf5ab

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/rrweb-snapshot/src/rebuild.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,11 @@ function buildNode(
380380
*/
381381
if (!node.shadowRoot) {
382382
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-
);
383+
n.rrwebAdoptedStylesheets?.forEach((rrwebAdoptedStylesheet) => {
384+
const styleSheet = new CSSStyleSheet();
385+
styleSheet.replaceSync(rrwebAdoptedStylesheet);
386+
node.shadowRoot?.adoptedStyleSheets.push(styleSheet);
387+
});
390388
} else {
391389
while (node.shadowRoot.firstChild) {
392390
node.shadowRoot.removeChild(node.shadowRoot.firstChild);

0 commit comments

Comments
 (0)