added a check for safety

This commit is contained in:
antelle 2020-10-28 20:18:27 +01:00
parent 90da86ebb8
commit 35e3271839
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 4 additions and 2 deletions

View File

@ -618,8 +618,10 @@ function setEnv() {
app.commandLine.appendSwitch('disable-http-cache');
app.commandLine.appendSwitch('disable-gpu-shader-disk-cache');
// fixes colors on Linux, see #1621
app.commandLine.appendSwitch('force-color-profile', 'srgb');
if (process.platform === 'linux') {
// fixes colors on Linux, see #1621
app.commandLine.appendSwitch('force-color-profile', 'srgb');
}
app.allowRendererProcessReuse = true;