api changes
This commit is contained in:
parent
172571c329
commit
d3d63ebdf8
@ -506,7 +506,7 @@ export class BlockchainKernelController {
|
|||||||
next: NextFunction,
|
next: NextFunction,
|
||||||
) => {
|
) => {
|
||||||
try {
|
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);
|
// console.log('resp resp respresp',resp);
|
||||||
let data = '';
|
let data = '';
|
||||||
|
|
||||||
|
@ -9,5 +9,19 @@ import { TransServiceService } from './shared/services/trans-service.service';
|
|||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
title = 'explorer2-epic';
|
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); });
|
||||||
|
});
|
||||||
|
});
|
||||||
|
// }
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user