Skip to content

Commit

Permalink
Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Aug 23, 2024
1 parent 93cb523 commit efaae6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/rrdom/test/diff/dialog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
7 changes: 5 additions & 2 deletions packages/rrweb-snapshot/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit efaae6d

Please sign in to comment.