add comments in overlay page
This commit is contained in:
parent
5de33019d8
commit
7259ffb3de
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user