Skip to content

Commit f45938d

Browse files
billyvggithub-actions[bot]
authored andcommitted
Apply formatting changes
1 parent a358076 commit f45938d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/rrweb/src/replay/index.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,7 @@ export class Replayer {
816816
this.insertStyleRules(documentElement, head);
817817
if (!this.service.state.matches('playing')) {
818818
const iframeHtmlElement =
819-
this.iframe.contentDocument
820-
.getElementsByTagName('html')[0];
819+
this.iframe.contentDocument.getElementsByTagName('html')[0];
821820

822821
iframeHtmlElement && iframeHtmlElement.classList.add('rrweb-paused');
823822
}
@@ -1962,7 +1961,8 @@ export class Replayer {
19621961
styleSheet.rules,
19631962
data.index,
19641963
) as unknown as CSSStyleRule;
1965-
rule && rule.style &&
1964+
rule &&
1965+
rule.style &&
19661966
rule.style.setProperty(
19671967
data.set.property,
19681968
data.set.value,
@@ -2133,13 +2133,12 @@ export class Replayer {
21332133
}
21342134

21352135
private hoverElements(el: Element) {
2136-
const rootElement = (this.lastHoveredRootNode || this.iframe.contentDocument);
2136+
const rootElement = this.lastHoveredRootNode || this.iframe.contentDocument;
21372137

21382138
// Sometimes this throws because `querySelectorAll` is not a function,
21392139
// unsure of value of rootElement when this occurs
21402140
if (rootElement && typeof rootElement.querySelectorAll === 'function') {
2141-
rootElement.querySelectorAll('.\\:hover')
2142-
.forEach((hoveredEl) => {
2141+
rootElement.querySelectorAll('.\\:hover').forEach((hoveredEl) => {
21432142
hoveredEl.classList.remove(':hover');
21442143
});
21452144
}

0 commit comments

Comments
 (0)