From 4832c906d1f6aab408064d1b44510578d85a8190 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Tue, 16 Jul 2019 11:02:34 +0530 Subject: [PATCH] Revert "ELECTRON-1369 - Set title bar's title once (#721)" (#731) This reverts commit 92f13bfa61ce2c22ba8cd7f238f9dba3430e309e. --- src/renderer/components/windows-title-bar.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/renderer/components/windows-title-bar.tsx b/src/renderer/components/windows-title-bar.tsx index 9148a5b7..4e2ff852 100644 --- a/src/renderer/components/windows-title-bar.tsx +++ b/src/renderer/components/windows-title-bar.tsx @@ -13,7 +13,6 @@ const TITLE_BAR_NAMESPACE = 'TitleBar'; export default class WindowsTitleBar extends React.Component<{}, IState> { private readonly window: Electron.BrowserWindow; - private readonly title: string; private readonly eventHandlers = { onClose: () => this.close(), onMaximize: () => this.maximize(), @@ -25,7 +24,6 @@ export default class WindowsTitleBar extends React.Component<{}, IState> { constructor(props) { super(props); this.window = remote.getCurrentWindow(); - this.title = document.title || 'Symphony'; this.state = { isFullScreen: this.window.isFullScreen(), isMaximized: this.window.isMaximized(), @@ -79,7 +77,7 @@ export default class WindowsTitleBar extends React.Component<{}, IState> {
{this.getSymphonyLogo()} -

{this.title}

+

{document.title || 'Symphony'}