I included the PrebotModule in an Angular 12 project and I found that the following line breaks, because the call to getComputedStyle is Illegal.
|
const gcs = this.getWindow().getComputedStyle; |
The getComputedStyle object is set here:
|
getComputedStyle: window.getComputedStyle, |
- Which parts of preboot are affected by this issue?
-
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]

I included the PrebotModule in an Angular 12 project and I found that the following line breaks, because the call to
getComputedStyleis Illegal.preboot/src/lib/api/event.replayer.ts
Line 146 in 022ce61
The
getComputedStyleobject is set here:preboot/src/lib/api/event.replayer.ts
Line 21 in 022ce61
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: