File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/rrweb-snapshot/src Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -380,13 +380,11 @@ function buildNode(
380
380
*/
381
381
if ( ! node . shadowRoot ) {
382
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
- ) ;
383
+ n . rrwebAdoptedStylesheets ?. forEach ( ( rrwebAdoptedStylesheet ) => {
384
+ const styleSheet = new CSSStyleSheet ( ) ;
385
+ styleSheet . replaceSync ( rrwebAdoptedStylesheet ) ;
386
+ node . shadowRoot ?. adoptedStyleSheets . push ( styleSheet ) ;
387
+ } ) ;
390
388
} else {
391
389
while ( node . shadowRoot . firstChild ) {
392
390
node . shadowRoot . removeChild ( node . shadowRoot . firstChild ) ;
You can’t perform that action at this time.
0 commit comments