Eletron 10 unable to monitor network changes
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