Fix Light Mode Brand Accent Rendering
This commit is contained in:
1 parent
94ca7defb2
commit
ae9e86461e
1 file changed
+2
-1
@@ -55,7 +55,7 @@ export class BrandAccent implements OnDestroy {
|
||||
constructor(private ngZone: NgZone) {
|
||||
if (typeof document !== 'undefined') {
|
||||
this.offscreenCanvas = new OffscreenCanvas(0, 0);
|
||||
this.offscreenCtx = this.offscreenCanvas.getContext('2d', { alpha: false, colorSpace: 'srgb' })!;
|
||||
this.offscreenCtx = this.offscreenCanvas.getContext('2d', { colorSpace: 'srgb' })!;
|
||||
}
|
||||
|
||||
effect(() => {
|
||||
@@ -121,6 +121,7 @@ export class BrandAccent implements OnDestroy {
|
||||
this.ctx.scale(dpr, dpr);
|
||||
this.updateAnimationInfo();
|
||||
|
||||
this.update(performance.now());
|
||||
this.draw();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user