Skip to content

Commit

Permalink
fix(@nguniversal/common): handle ngDevMode correctly
Browse files Browse the repository at this point in the history
(cherry picked from commit 1815b10)
  • Loading branch information
arturovt authored and alan-agius4 committed Jul 4, 2022
1 parent 78d5e4c commit b68cc08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/common/clover/src/styles_host.ts
Expand Up @@ -34,7 +34,7 @@ export class SSRStylesHost extends SharedStylesHost implements OnDestroy {
private _addStyle(style: string): void {
const element = this._styleNodesInDOM?.get(style);
if (element) {
if (typeof ngDevMode !== undefined && ngDevMode) {
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
element.setAttribute('_ng-style-re-used', '');
}

Expand Down

0 comments on commit b68cc08

Please sign in to comment.