Merge pull request #599 from csduarte/BASH-19
BASH-19 Remove hardcoded product name references
This commit is contained in:
commit
0826190538
|
@ -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
|
||||
});
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue