diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index ef4ef34..3660ae8 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -68,7 +68,6 @@ import { getAccountRegistry, removeAccountFromRegistry } from "../../utilities/accounts"; -import { isChildView } from "../../utilities/appbar"; interface IAppLayoutState { acctMenuOpen: boolean; @@ -223,6 +222,10 @@ export class AppLayout extends Component { }); } + canGoBack(): boolean { + return window.history.length > 1; + } + toggleAcctMenu() { this.setState({ acctMenuOpen: !this.state.acctMenuOpen }); } @@ -486,7 +489,7 @@ export class AppLayout extends Component { {this.titlebar()} - {isChildView(window.location.hash) ? ( + {isDesktopApp() && this.canGoBack() ? ( { - if (hash.includes(childViewProtocol)) { - console.log(childViewProtocol); - foundProtocol = true; - } - }); - - return foundProtocol; -}