File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
rrweb/src/record/observers Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 77 Mirror as NodeMirror ,
88 serializedNodeWithId ,
99} from 'rrweb-snapshot' ;
10- import {
11- NodeType as RRNodeType ,
12- } from '@rrweb/types' ;
10+ import { NodeType as RRNodeType } from '@rrweb/types' ;
1311import { RRDocument } from '../../src' ;
1412import { diff , ReplayerHandler } from '../../src/diff' ;
1513
Original file line number Diff line number Diff line change @@ -129,11 +129,14 @@ export function stringifyStylesheet(s: CSSStyleSheet): string | null {
129129 }
130130}
131131
132- export function stringifyCssRules ( rules : CSSRuleList , sheetHref : string | null ) : string {
132+ export function stringifyCssRules (
133+ rules : CSSRuleList ,
134+ sheetHref : string | null ,
135+ ) : string {
133136 const stringifiedRules = Array . from ( rules , ( rule : CSSRule ) =>
134137 stringifyRule ( rule , sheetHref ) ,
135138 ) . join ( '' ) ;
136- return fixBrowserCompatibilityIssuesInCSS ( stringifiedRules ) ;
139+ return fixBrowserCompatibilityIssuesInCSS ( stringifiedRules ) ;
137140}
138141
139142export function stringifyRule ( rule : CSSRule , sheetHref : string | null ) : string {
Original file line number Diff line number Diff line change @@ -177,10 +177,7 @@ export default class AssetManager {
177177 }
178178 const processStylesheet = ( ) => {
179179 cssRules = el . sheet ! . cssRules ; // update, as a mutation may have since occurred
180- const cssText = stringifyCssRules (
181- cssRules ,
182- sheetBaseHref ,
183- ) ;
180+ const cssText = stringifyCssRules ( cssRules , sheetBaseHref ) ;
184181 const payload : SerializedCssTextArg = {
185182 rr_type : 'CssText' ,
186183 cssTexts : [ cssText ] ,
You can’t perform that action at this time.
0 commit comments