SDA-2215: add macOS check for setting system preferences

This commit is contained in:
Vishwas Shashidhar 2020-06-23 20:33:00 +05:30
parent 9e50ffa472
commit 07f77f4bb3

View File

@ -17,7 +17,9 @@ import { ICustomBrowserWindow, windowHandler } from './window-handler';
// Set automatic period substitution to false because of a bug in draft js on the client app
// See https://perzoinc.atlassian.net/browse/SDA-2215 for more details
systemPreferences.setUserDefault('NSAutomaticPeriodSubstitutionEnabled', 'string', 'false');
if (isMac) {
systemPreferences.setUserDefault('NSAutomaticPeriodSubstitutionEnabled', 'string', 'false');
}
logger.info(`App started with the args ${JSON.stringify(process.argv)}`);