add comments in overlay page

This commit is contained in:
Lee 2023-11-08 00:29:22 +00:00
parent 5de33019d8
commit 7259ffb3de

View File

@ -102,11 +102,13 @@ export default class Overlay extends Component<OverlayProps, OverlayState> {
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 (
<main className="flex items-center !bg-transparent p-3">
@ -116,6 +118,7 @@ export default class Overlay extends Component<OverlayProps, OverlayState> {
);
}
// The overlay
return (
<main>
<div>