Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit b68cc08

Browse files
arturovtalan-agius4
authored andcommitted
fix(@nguniversal/common): handle ngDevMode correctly
(cherry picked from commit 1815b10)
1 parent 78d5e4c commit b68cc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/common/clover/src/styles_host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class SSRStylesHost extends SharedStylesHost implements OnDestroy {
3434
private _addStyle(style: string): void {
3535
const element = this._styleNodesInDOM?.get(style);
3636
if (element) {
37-
if (typeof ngDevMode !== undefined && ngDevMode) {
37+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
3838
element.setAttribute('_ng-style-re-used', '');
3939
}
4040

0 commit comments

Comments
 (0)