Revert "Show error dialog when wrong buildConfig is used"
This reverts commit fa578fb37c
.
This commit is contained in:
parent
f7a9f50764
commit
45963a9eb1
|
@ -6,7 +6,6 @@
|
|||
* @prop {string} helpLink - The URL for "Help->Learn More..." menu item.
|
||||
* If null is specified, the menu disappears.
|
||||
* @prop {boolean} enableServerManagement - Whether users can edit servers configuration.
|
||||
* If false is specified, defaultTeams must have a team at least.
|
||||
*/
|
||||
const buildConfig = {
|
||||
defaultTeams: [/*
|
||||
|
|
|
@ -31,7 +31,6 @@ if (squirrelStartup()) {
|
|||
}
|
||||
|
||||
var settings = require('./common/settings');
|
||||
const buildConfig = require('./common/config/buildConfig');
|
||||
var certificateStore = require('./main/certificateStore').load(path.resolve(app.getPath('userData'), 'certificate.json'));
|
||||
const {createMainWindow} = require('./main/mainWindow');
|
||||
const appMenu = require('./main/menus/app');
|
||||
|
@ -368,14 +367,6 @@ app.on('ready', () => {
|
|||
if (global.willAppQuit) {
|
||||
return;
|
||||
}
|
||||
if (buildConfig.enableServerManagement === false && buildConfig.defaultTeams.length === 0) {
|
||||
dialog.showMessageBox({
|
||||
type: 'error',
|
||||
title: 'Mattermost',
|
||||
message: 'When "enableServerManagement: false" is specified in buildConfig.js,\n"defaultTeams" must have one team at least.'
|
||||
});
|
||||
app.exit();
|
||||
}
|
||||
if (global.isDev) {
|
||||
installExtension.default(installExtension.REACT_DEVELOPER_TOOLS).
|
||||
then((name) => console.log(`Added Extension: ${name}`)).
|
||||
|
|
Loading…
Reference in a new issue