Skip to content

Commit aecdcf9

Browse files
committed
Apply formatting changes
1 parent 028c41c commit aecdcf9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/rrweb-snapshot/src/snapshot.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,11 @@ export function transformAttribute(
252252
}
253253
}
254254

255-
export function ignoreAttribute(tagName: string, name: string, _value: unknown): boolean {
255+
export function ignoreAttribute(
256+
tagName: string,
257+
name: string,
258+
_value: unknown,
259+
): boolean {
256260
return (tagName === 'video' || tagName === 'audio') && name === 'autoplay';
257261
}
258262

packages/rrweb/src/record/mutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ export default class MutationBuffer {
558558
styleObj[pname] = false; // delete
559559
}
560560
}
561-
} else if(!ignoreAttribute(target.tagName, m.attributeName!, value)) {
561+
} else if (!ignoreAttribute(target.tagName, m.attributeName!, value)) {
562562
// overwrite attribute if the mutations was triggered in same time
563563
item.attributes[m.attributeName!] = transformAttribute(
564564
this.doc,

0 commit comments

Comments
 (0)