Skip to content

Commit

Permalink
Handle the 'network' event in PWA mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Dec 2, 2022
1 parent 0600486 commit 53ca5b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions angular/src/app/services/frontend.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export class FrontendService implements OnInit {
await this.executeIndexer();
return 'ok';
}
case 'network': {
await this.networkStatusWatcher();
await this.executeIndexer();
return 'ok';
}
case 'keep-alive': {
console.log('keep-alive!!!');
return 'ok';
Expand Down

0 comments on commit 53ca5b8

Please sign in to comment.