From 9f7a72cc483db7d7a9414ec06ac89aa5cb1c3af2 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 28 May 2019 16:53:39 -0700 Subject: [PATCH] fix title bar --- src/renderer/App.jsx | 2 +- src/renderer/components/Titlebar.jsx | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/renderer/App.jsx b/src/renderer/App.jsx index fe17c81..33b0c24 100644 --- a/src/renderer/App.jsx +++ b/src/renderer/App.jsx @@ -43,7 +43,7 @@ export default class App extends PureComponent { render() { return ( <> - + {process.platform === 'darwin' && }
diff --git a/src/renderer/components/Titlebar.jsx b/src/renderer/components/Titlebar.jsx index 21610d6..fd813ce 100644 --- a/src/renderer/components/Titlebar.jsx +++ b/src/renderer/components/Titlebar.jsx @@ -2,14 +2,10 @@ import './Titlebar.css' import React from 'react' import pkg from '../../../package.json' -const Titlebar = () => { - if (process.platform !== 'darwin') return - - return ( -
- {pkg.productName} -
- ) -} +const Titlebar = () => ( +
+ {pkg.productName} +
+) export default Titlebar