From 7259ffb3de25897fdb7ea2f6c0a2ebbeb9ac5e14 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 8 Nov 2023 00:29:22 +0000 Subject: [PATCH] add comments in overlay page --- src/app/overlay/page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/overlay/page.tsx b/src/app/overlay/page.tsx index 7288b25..09b085d 100644 --- a/src/app/overlay/page.tsx +++ b/src/app/overlay/page.tsx @@ -102,11 +102,13 @@ export default class Overlay extends Component { render() { const { player, config, mounted } = this.state; + // Redirect to builder if no config is set if (mounted && !config) { window.location.href = "/overlay/builder"; return null; } + // Show loading screen if player stats are enabled and not loaded yet if (!mounted || (!player && config.settings.showPlayerStats)) { return (
@@ -116,6 +118,7 @@ export default class Overlay extends Component { ); } + // The overlay return (