From d3d63ebdf8a5a7aedb4c4c0432562b689d80b2a6 Mon Sep 17 00:00:00 2001 From: SuriyaR Date: Mon, 5 Aug 2019 08:19:25 +0200 Subject: [PATCH] api changes --- server/controllers/BlockchainKernel.ts | 2 +- src/app/app.component.ts | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/server/controllers/BlockchainKernel.ts b/server/controllers/BlockchainKernel.ts index 0f0028a..f1225e4 100644 --- a/server/controllers/BlockchainKernel.ts +++ b/server/controllers/BlockchainKernel.ts @@ -506,7 +506,7 @@ export class BlockchainKernelController { next: NextFunction, ) => { try { - http.get('http://5.9.174.122:3413/v1/peers/connected', (resp) => { + http.get('http://116.203.152.58:3413/v1/peers/connected', (resp) => { // console.log('resp resp respresp',resp); let data = ''; diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ac5c5a7..55b308e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -9,5 +9,19 @@ import { TransServiceService } from './shared/services/trans-service.service'; }) export class AppComponent { title = 'explorer2-epic'; - constructor(private _cookieService: CookieService,public translate: TransServiceService){} + constructor(private _cookieService: CookieService,public translate: TransServiceService){ + console.log('cccc',caches.keys()); +caches.keys().then((keys) => { + keys.forEach((eachCacheName) => { + let regExPat = /^(ngsw).*api.*/; + // if (regExPat.test(eachCacheName)) { + caches.open(eachCacheName).then((eachCache) => { + eachCache.keys().then((requests) => { + requests.forEach((eachRequest) => { eachCache.delete(eachRequest); }); + }); + }); + // } + }); +}); +} }