1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-12-28 07:37:51 +01:00

fix title bar

This commit is contained in:
Matthias Kretschmann 2019-05-28 16:53:39 -07:00
parent 6ea9f7ffb3
commit 9f7a72cc48
2 changed files with 6 additions and 10 deletions

View File

@ -43,7 +43,7 @@ export default class App extends PureComponent {
render() {
return (
<>
<Titlebar />
{process.platform === 'darwin' && <Titlebar />}
<div className="app">
<PosedRouter>
<Home path="/" default />

View File

@ -2,14 +2,10 @@ import './Titlebar.css'
import React from 'react'
import pkg from '../../../package.json'
const Titlebar = () => {
if (process.platform !== 'darwin') return
return (
<header className="titlebar">
<span className="header-title">{pkg.productName}</span>
</header>
)
}
const Titlebar = () => (
<header className="titlebar">
<span className="header-title">{pkg.productName}</span>
</header>
)
export default Titlebar