diff --git a/src/app/overlay/page.tsx b/src/app/overlay/page.tsx index b6f2629..7288b25 100644 --- a/src/app/overlay/page.tsx +++ b/src/app/overlay/page.tsx @@ -1,11 +1,9 @@ "use client"; -import Container from "@/components/Container"; import Spinner from "@/components/Spinner"; import PlayerStats from "@/components/overlay/PlayerStats"; import ScoreStats from "@/components/overlay/ScoreStats"; import SongInfo from "@/components/overlay/SongInfo"; -import { Card, CardDescription, CardTitle } from "@/components/ui/card"; import { HttpSiraStatus } from "@/overlay/httpSiraStatus"; import { OverlayPlayer } from "@/overlay/type/overlayPlayer"; import { BeatLeaderAPI } from "@/utils/beatleader/api"; @@ -104,6 +102,11 @@ export default class Overlay extends Component { render() { const { player, config, mounted } = this.state; + if (mounted && !config) { + window.location.href = "/overlay/builder"; + return null; + } + if (!mounted || (!player && config.settings.showPlayerStats)) { return (
@@ -113,33 +116,6 @@ export default class Overlay extends Component { ); } - if (!config) { - return ( -
- - - Overlay - -

- This page is meant to be used as an overlay for streaming. -

-

- To generate an overlay, go to the builder{" "} - - here - - . -

-
-
-
-
- ); - } - return (