From 80a59081e989855b3ca5562953d97f42c2e4be5c Mon Sep 17 00:00:00 2001 From: Marquis Kurt Date: Mon, 29 Apr 2019 14:38:28 -0400 Subject: [PATCH] Fix brand name stuff in AppLayout --- src/components/AppLayout/AppLayout.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index 87cec2f..53c3c6a 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -177,10 +177,10 @@ export class AppLayout extends Component { Careful: you're running in developer mode. ); - } else if ((navigator.userAgent.includes("Hyperspace") || navigator.userAgent.includes("Electron")) && navigator.userAgent.includes("Macintosh")) { + } else if ((navigator.userAgent.includes(this.state.brandName || "Hyperspace") || navigator.userAgent.includes("Electron")) && navigator.userAgent.includes("Macintosh")) { return (
- Hyperspace + {this.state.brandName? this.state.brandName: "Hyperspace"}
); } @@ -376,10 +376,10 @@ export class AppLayout extends Component { open={this.state.logOutOpen} onClose={() => this.toggleLogOutDialog()} > - Log out of Hyperspace? + Log out of {this.state.brandName? this.state.brandName: "Hyperspace"} - You'll need to remove Hyperspace from your list of authorized apps and log in again if you want to use Hyperspace. + You'll need to remove {this.state.brandName? this.state.brandName: "Hyperspace"} from your list of authorized apps and log in again if you want to use {this.state.brandName? this.state.brandName: "Hyperspace"}.