From 1afe1ec9484f9f091ea4ad33f3d7beb53ee3c46e Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sat, 12 Aug 2023 15:57:32 -0400 Subject: [PATCH] Fix navigation bar on secure contexts --- src/ui/components/landing/Navigation.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/components/landing/Navigation.tsx b/src/ui/components/landing/Navigation.tsx index 9d75b60..1dcbd6a 100644 --- a/src/ui/components/landing/Navigation.tsx +++ b/src/ui/components/landing/Navigation.tsx @@ -50,20 +50,20 @@ class Navigation extends React.Component<{}, IState> { } componentDidMount() { - if ((window as any).navigation) { + if ((window as any).navBar) { return; } - (window as any).navigation = this; + (window as any).navBar = this; window.addEventListener("scroll", this.handleScroll.bind(this)); } componentWillUnmount() { - if (!(window as any).navigation) { + if (!(window as any).navBar) { return; } - (window as any).navigation = undefined; + (window as any).navBar = undefined; window.removeEventListener("scroll", this.handleScroll.bind(this)); }