Some minor codestyle improvements due to jshint

This commit is contained in:
Kolja Lampe
2016-08-29 23:40:11 +02:00
committed by Kolja Lampe
parent 7834c5a834
commit b59f501a82
13 changed files with 46 additions and 47 deletions

View File

@@ -25,7 +25,7 @@ function getHost(targetURL) {
}
var CertificateStore = function(storeFile) {
this.storeFile = storeFile
this.storeFile = storeFile;
try {
this.data = JSON.parse(fs.readFileSync(storeFile, 'utf-8'));
}

View File

@@ -177,7 +177,7 @@ var createTemplate = function(mainWindow, config) {
},
enabled: (config.teams.length > 1)
}]
}
};
template.push(window_menu);
template.push({
@@ -185,7 +185,7 @@ var createTemplate = function(mainWindow, config) {
submenu: [{
label: `${app_name} Docs`,
click: function() {
electron.shell.openExternal('http://docs.mattermost.com')
electron.shell.openExternal('http://docs.mattermost.com');
}
}, {
type: 'separator'

View File

@@ -2,8 +2,7 @@
const {
app,
Menu,
MenuItem
Menu
} = require('electron');
function createTemplate(mainWindow, config) {
@@ -48,7 +47,7 @@ var createMenu = function(mainWindow, config) {
};
function showOrRestore(window) {
window.isMinimized() ? window.restore() : window.show()
window.isMinimized() ? window.restore() : window.show();
}
module.exports = {