fixed linting

This commit is contained in:
akashnimare
2017-06-10 15:39:05 +05:30
parent 5ff2492c79
commit 7bd2e751c5
3 changed files with 39 additions and 38 deletions

View File

@@ -5,36 +5,36 @@ 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';
}
if (os.platform() === 'linux') {
return 'Linux';
}
if (os.platform() === 'win32' || os.platform() === 'win64') {
if (parseFloat(os.release()) < 6.2) {
return 'Windows 7';
} else {
return 'Windows 10';
}
}
}
constructor() {
this.connectivityERR = [
'ERR_INTERNET_DISCONNECTED',
'ERR_PROXY_CONNECTION_FAILED',
'ERR_CONNECTION_RESET',
'ERR_NOT_CONNECTED',
'ERR_NAME_NOT_RESOLVED',
'ERR_NETWORK_CHANGED'
];
}
getUserAgent() {
return 'ZulipElectron/' + app.getVersion() + ' ' + this.getOS();
}
getOS() {
if (os.platform() === 'darwin') {
return 'Mac';
}
if (os.platform() === 'linux') {
return 'Linux';
}
if (os.platform() === 'win32' || os.platform() === 'win64') {
if (parseFloat(os.release()) < 6.2) {
return 'Windows 7';
} else {
return 'Windows 10';
}
}
}
getUserAgent() {
return 'ZulipElectron/' + app.getVersion() + ' ' + this.getOS();
}
}
module.exports = SystemUtil;