Fixes bug in WrappedStyleElement

This commit is contained in:
Henning Dieterichs 2024-01-23 20:31:02 +01:00 committed by Henning Dieterichs
parent 7975a45543
commit ca476115d3

View file

@ -939,7 +939,7 @@ class WrappedStyleElement {
private _styleSheet: HTMLStyleElement | undefined = undefined;
public setStyle(cssStyle: string): void {
if (cssStyle !== this._currentCssStyle) {
if (cssStyle === this._currentCssStyle) {
return;
}
this._currentCssStyle = cssStyle;