From 81522a3b2d358f0748a114e64d6a7912f35d38b8 Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:54:42 -0400 Subject: [PATCH] [MM-22751] Removed Windows 10 style border for non-Windows 10 clients (#1322) * [MM-22751] Removed Windows 10 style border for non-Windows 10 clients * Lint fix --- src/browser/components/MainPage.jsx | 3 ++- src/browser/components/SettingsPage.jsx | 4 +++- src/main/mainWindow.js | 8 +++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/browser/components/MainPage.jsx b/src/browser/components/MainPage.jsx index df9ee483..eab682dc 100644 --- a/src/browser/components/MainPage.jsx +++ b/src/browser/components/MainPage.jsx @@ -5,6 +5,7 @@ // This files uses setState(). /* eslint-disable react/no-set-state */ +import os from 'os'; import url from 'url'; import React, {Fragment} from 'react'; @@ -704,7 +705,7 @@ export default class MainPage extends React.Component { } let titleBarButtons; - if (process.platform !== 'darwin') { + if (os.platform() === 'win32' && os.release().startsWith('10')) { titleBarButtons = (