From 1815b10feba34a5dcb1d12567c9d4b4d774e45ee Mon Sep 17 00:00:00 2001 From: arturovt Date: Mon, 4 Jul 2022 11:25:58 +0300 Subject: [PATCH] fix(@nguniversal/common): handle `ngDevMode` correctly --- modules/common/clover/src/styles_host.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/common/clover/src/styles_host.ts b/modules/common/clover/src/styles_host.ts index fb2e4ef40..b14f693dc 100644 --- a/modules/common/clover/src/styles_host.ts +++ b/modules/common/clover/src/styles_host.ts @@ -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', ''); }