Merge pull request #599 from csduarte/BASH-19

BASH-19 Remove hardcoded product name references
This commit is contained in:
Yuya Ochiai 2017-09-15 21:23:15 +09:00 committed by GitHub
commit 0826190538
3 changed files with 5 additions and 5 deletions

View file

@ -14,7 +14,7 @@ const TeamList = require('./TeamList.jsx');
const AutoSaveIndicator = require('./AutoSaveIndicator.jsx');
const appLauncher = new AutoLaunch({
name: 'Mattermost',
name: remote.app.getName(),
isHidden: true
});

View file

@ -1,11 +1,10 @@
'use strict';
const {remote} = require('electron');
window.eval = global.eval = () => {
throw new Error('Sorry, Mattermost does not support window.eval() for security reasons.');
throw new Error(`Sorry, ${remote.app.getName()} does not support window.eval() for security reasons.`);
};
const {remote} = require('electron');
const React = require('react');
const ReactDOM = require('react-dom');
const SettingsPage = require('./components/SettingsPage.jsx');

View file

@ -1,4 +1,5 @@
const AutoLaunch = require('auto-launch');
const {app} = require('electron');
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: app.getName(),
isHidden: true
});
if (cmd === '--squirrel-uninstall') {