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

@@ -9,12 +9,13 @@ const AutoLaunch = require('auto-launch');
const {debounce} = require('underscore');
const settings = require('../../common/settings');
const appName = require('../../package.json').productName;
const TeamList = require('./TeamList.jsx');
const AutoSaveIndicator = require('./AutoSaveIndicator.jsx');
const appLauncher = new AutoLaunch({
name: 'Mattermost',
name: appName,
isHidden: true
});

View File

@@ -1,7 +1,8 @@
'use strict';
const appName = require('../package.json').productName;
window.eval = global.eval = () => {
throw new Error('Sorry, Mattermost does not support window.eval() for security reasons.');
throw new Error(`Sorry, ${appName} does not support window.eval() for security reasons.`);
};
const {remote} = require('electron');

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') {