Open help link from config

This commit is contained in:
Jarred Witt
2017-09-07 14:12:50 -07:00
committed by David Meza
parent 84dc9d9975
commit 53014d48d2
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
'use strict';
const electron = require('electron');
const Menu = electron.Menu;
function createTemplate(mainWindow, config, isDev) {
@@ -207,7 +208,7 @@ function createTemplate(mainWindow, config, isDev) {
submenu: [{
label: 'Learn More...',
click() {
electron.shell.openExternal('https://docs.mattermost.com/help/apps/desktop-guide.html');
electron.shell.openExternal(config.helpLink);
}
}, {
type: 'separator'