Illegal invocation calling window.getComputedStyle #135
Description
I included the PrebotModule in an Angular 12 project and I found that the following line breaks, because the call to getComputedStyle
is Illegal.
preboot/src/lib/api/event.replayer.ts
Line 146 in 022ce61
The getComputedStyle
object is set here:
preboot/src/lib/api/event.replayer.ts
Line 21 in 022ce61
- I'm submitting a ...
- bug report
- feature request
- Which parts of preboot are affected by this issue?
- server side
- client side
- inline
- build process
- docs
- tests
-
What is the current behavior?
Currently it throws an error and breaks the swapping of the root application. -
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by
-
What is the expected behavior?
Should not fail when running in the browser. I would suggest to add.bind(window)
to the declaration. -
Please tell us about your environment:
- Browser: [Chrome 92.0.4515.159]
- Language: [TypeScript 4.3 | ES6/7 | ES5 ]
- OS: [Mac OS X]