Some minor codestyle improvements due to jshint
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
@@ -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'
|
||||
|
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user