Fix network disconnectivity issue.

This commit is contained in:
Zhongyi Tong
2017-06-01 19:33:56 +08:00
parent b0db81095a
commit 606e407aee
3 changed files with 42 additions and 39 deletions

View File

@@ -5,6 +5,17 @@ const {app} = require('electron').remote;
const os = require('os');
class SystemUtil {
constructor() {
this.connectivityERR = [
'ERR_INTERNET_DISCONNECTED',
'ERR_PROXY_CONNECTION_FAILED',
'ERR_CONNECTION_RESET',
'ERR_NOT_CONNECTED',
'ERR_NAME_NOT_RESOLVED',
'ERR_NETWORK_CHANGED'
];
}
getOS() {
if (os.platform() === 'darwin') {
return 'Mac';