From ccb2b1b2fbaf58a5545f32c86d30778c17c03f6f Mon Sep 17 00:00:00 2001 From: Sudarshan Kumar Date: Tue, 23 Jun 2020 14:51:04 +0530 Subject: Report Search,Menu Update,Disable console fixes Report Search,Menu Update,Disable console fixes Issue-ID: PORTAL-932 Change-Id: I4898cde786ef90828b0999750c34e6e85179c069 Signed-off-by: Sudarshan Kumar --- ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts') diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts index c7b673cf..a892a2e6 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts @@ -10,3 +10,8 @@ if (environment.production) { platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); + +console.log("isLogDisabled :: ",environment.isLogDisabled); +if (environment.isLogDisabled ==='true'){ + window['console']['log'] = function() {}; +} \ No newline at end of file -- cgit 1.2.3-korg