api changes

This commit is contained in:
SuriyaR 2019-08-05 08:19:25 +02:00
parent 172571c329
commit d3d63ebdf8
2 changed files with 16 additions and 2 deletions

View File

@ -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 = '';

View File

@ -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); });
});
});
// }
});
});
}
}