determine, when your electron app is online or went offline.
const ElectronOnline =const connection =connectionconnectionconsole // 'PENDING'
$ npm i electron-online
connection is an
a string that represents the status of the app's connection. can be
(when still determining the initial status),
fires, when the app comes online.
fires, when the app becomes offline.
$ npm test