Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 77365c9

Browse files
committed
fix: Illegal invocation calling window.getComputedStyle
1 parent 7456f9c commit 77365c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api/event.replayer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {getNodeKeyForPreboot} from '../common/get-node-key';
1818
export function _window(): PrebootWindow {
1919
return {
2020
prebootData: (window as any)['prebootData'],
21-
getComputedStyle: window.getComputedStyle,
21+
getComputedStyle: (element, pseudoElt) => window.getComputedStyle(element, pseudoElt),
2222
document: document
2323
};
2424
}

0 commit comments

Comments
 (0)