ELECTRON-825: fix message formatting (#531)

This commit is contained in:
Vishwas Shashidhar
2018-12-04 12:12:58 -08:00
committed by GitHub
parent c1d162b7cc
commit 4c58634010

View File

@@ -295,7 +295,7 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
if (config && config.permissions) {
const permission = ' screen sharing';
const fullMessage = i18n.getMessageFor('Your administrator has disabled') + permission + '. ' + i18n.getMessageFor('Please contact your admin for help');
const fullMessage = i18n.getMessageFor('Your administrator has disabled ') + permission + '. ' + i18n.getMessageFor('Please contact your admin for help');
const dialogContent = { type: 'error', title: i18n.getMessageFor('Permission Denied') + '!', message: fullMessage };
mainWindow.webContents.send('is-screen-share-enabled', config.permissions.media, dialogContent);
}