Home > front end >  Eletron 10 unable to monitor network changes
Eletron 10 unable to monitor network changes

Time:10-14


Window. The addEventListener (' online ', ()=& gt; {

The console. The log (' network ')
The console. The log (111)

})

Window. The addEventListener (' offline '()=& gt; {

The console. The log (' offline ')

})
This code yes ah, in the rendering process, why can't we listen to the network disconnection and connection
  • Related