Ionic 4 capacitor PWA Network not supported

I have tried to use Capacitor for check the network status but i get
“Error Network does not have web implementation.”
I have searched in Google ( but i have not understand if the problem is resolved…
If no, how can resolve the problem of cheking network status…
this line in my code


need to be replaced but how?

I need to build a PWA

Thank you in advance