remove hardcoded mm references

This commit is contained in:
Chris Duarte
2017-09-08 08:23:17 -07:00
committed by David Meza
parent 50cce7daa8
commit c3f7542c9e
3 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
const AutoLaunch = require('auto-launch');
const appName = require('../package.json').productName;
function shouldQuitApp(cmd) {
if (process.platform !== 'win32') {
@@ -9,7 +10,7 @@ function shouldQuitApp(cmd) {
async function setupAutoLaunch(cmd) {
const appLauncher = new AutoLaunch({
name: 'Mattermost',
name: appName,
isHidden: true
});
if (cmd === '--squirrel-uninstall') {