mirror of
https://github.com/System-End/campfire.git
synced 2026-04-19 16:28:22 +00:00
adding flagship redirect
This commit is contained in:
parent
4f5d6b2895
commit
9b7fdd8582
1 changed files with 5 additions and 0 deletions
|
|
@ -56,6 +56,11 @@ function App() {
|
|||
const emailRef = useRef<HTMLInputElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
if (window.location.pathname === '/flagship') {
|
||||
window.location.href = 'https://flagship.campfire.hackclub.com';
|
||||
return;
|
||||
}
|
||||
|
||||
document.addEventListener("scroll", () => {
|
||||
setScrollY(window.scrollY);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue