1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-12-29 16:17:52 +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() { render() {
return ( return (
<> <>
<Titlebar /> {process.platform === 'darwin' && <Titlebar />}
<div className="app"> <div className="app">
<PosedRouter> <PosedRouter>
<Home path="/" default /> <Home path="/" default />

View File

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