🎨 fixed linting + #108

This commit is contained in:
akashnimare
2017-02-18 15:56:41 +05:30
parent 612e670bb5
commit bb74e58d63
2 changed files with 7 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ function appUpdater() {
*/
// Ask the user if update is available
// eslint-disable-next-line no-unused-vars
autoUpdater.on('update-downloaded', (event, info) => {
// let message = app.getName() + ' ' + info.releaseName + ' is now available. It will be installed the next time you restart the application.';
// if (info.releaseNotes) {

View File

@@ -20,7 +20,9 @@ const data = db.getData('/');
require('electron-debug')();
const conf = new Configstore('Zulip-Desktop');
const isUserAgent = 'ZulipElectron' + '/' + app.getVersion() + '_' + process.platform;
// setting userAgent so that server-side code can identify the desktop app
const isUserAgent = 'ZulipElectron/' + app.getVersion() + '_' + process.platform;
// prevent window being garbage collected
let mainWindow;
@@ -105,7 +107,6 @@ function createMainWindow() {
win.loadURL(targetURL(),
{
// setting userAgent so that server-side code can identify the desktop app
userAgent: isUserAgent
});
win.on('closed', onClosed);