diff --git a/packages/rrdom/test/diff/dialog.test.ts b/packages/rrdom/test/diff/dialog.test.ts index d0bb966e48..623fa826b0 100644 --- a/packages/rrdom/test/diff/dialog.test.ts +++ b/packages/rrdom/test/diff/dialog.test.ts @@ -7,9 +7,7 @@ import { Mirror as NodeMirror, serializedNodeWithId, } from 'rrweb-snapshot'; -import { - NodeType as RRNodeType, -} from '@rrweb/types'; +import { NodeType as RRNodeType } from '@rrweb/types'; import { RRDocument } from '../../src'; import { diff, ReplayerHandler } from '../../src/diff'; diff --git a/packages/rrweb-snapshot/src/utils.ts b/packages/rrweb-snapshot/src/utils.ts index f8d32d8a65..ada26a77f6 100644 --- a/packages/rrweb-snapshot/src/utils.ts +++ b/packages/rrweb-snapshot/src/utils.ts @@ -129,11 +129,14 @@ export function stringifyStylesheet(s: CSSStyleSheet): string | null { } } -export function stringifyCssRules(rules: CSSRuleList, sheetHref: string | null): string { +export function stringifyCssRules( + rules: CSSRuleList, + sheetHref: string | null, +): string { const stringifiedRules = Array.from(rules, (rule: CSSRule) => stringifyRule(rule, sheetHref), ).join(''); - return fixBrowserCompatibilityIssuesInCSS(stringifiedRules); + return fixBrowserCompatibilityIssuesInCSS(stringifiedRules); } export function stringifyRule(rule: CSSRule, sheetHref: string | null): string {