From 1c22ae3bfaa835e303cbee56c1083f9865231639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=98=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Wed, 27 Nov 2024 15:30:17 +0300 Subject: [PATCH] chore(demo): do not ddos free github api from localhost (#9850) --- projects/demo/src/modules/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/demo/src/modules/app/app.component.ts b/projects/demo/src/modules/app/app.component.ts index 7789e9a2ee5b..d1f7b1b7abe3 100644 --- a/projects/demo/src/modules/app/app.component.ts +++ b/projects/demo/src/modules/app/app.component.ts @@ -94,7 +94,7 @@ export class App extends AbstractDemo implements OnInit { public override async ngOnInit(): Promise { await super.ngOnInit(); - if (this.isServer || this.isE2E) { + if (this.isServer || this.isE2E || !environment.production) { return; }