diff --git a/ui/desktop/electron-app/src/index.js b/ui/desktop/electron-app/src/index.js index 6fdf81578..61d9a2c57 100644 --- a/ui/desktop/electron-app/src/index.js +++ b/ui/desktop/electron-app/src/index.js @@ -115,7 +115,8 @@ app.on('ready', async () => { /** * Enable electron OS window frame/chrome for MacOS only. - * Disable frame/chrome regardless of OS when `DISABLE_WINDOW_CHROME` is set. + * Disable frame/chrome regardless of OS when + * `DISABLE_WINDOW_CHROME=true`. */ let showWindowChrome = isMac(); if (process.env.DISABLE_WINDOW_CHROME) showWindowChrome = false; diff --git a/ui/desktop/electron-app/src/ipc/handlers.js b/ui/desktop/electron-app/src/ipc/handlers.js index 3d3ba3b4a..599e9c765 100644 --- a/ui/desktop/electron-app/src/ipc/handlers.js +++ b/ui/desktop/electron-app/src/ipc/handlers.js @@ -70,8 +70,8 @@ handle('stop', ({ session_id }) => sessionManager.stopById(session_id)); /** * Check for OS window chrome. Enabled on MacOS only. - * Window chrome is disabled regardless of platform when - * `DISABLE_WINDOW_CHROME` env var is enabled. + * Window chrome is disabled regardless of platform for + * `DISABLE_WINDOW_CHROME=true`. */ handle('hasMacOSChrome', () => process.env.DISABLE_WINDOW_CHROME ? false : isMac() @@ -79,12 +79,11 @@ handle('hasMacOSChrome', () => /** * Show window actions for non-MacOS platforms. - * Window actions are disabled regardless of platform when - * `DISABLE_WINDOW_CHROME` env var is enabled. + * Window actions are disabled regardless of platform for + * `DISABLE_WINDOW_CHROME=true`. */ -handle( - 'showWindowActions', - () => !isMac() || process.env.DISABLE_WINDOW_CHROME +handle('showWindowActions', () => + process.env.DISABLE_WINDOW_CHROME ? false : !isMac() ); /**