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() {
|
render() {
|
||||||
const { player, config, mounted } = this.state;
|
const { player, config, mounted } = this.state;
|
||||||
|
|
||||||
|
// Redirect to builder if no config is set
|
||||||
if (mounted && !config) {
|
if (mounted && !config) {
|
||||||
window.location.href = "/overlay/builder";
|
window.location.href = "/overlay/builder";
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Show loading screen if player stats are enabled and not loaded yet
|
||||||
if (!mounted || (!player && config.settings.showPlayerStats)) {
|
if (!mounted || (!player && config.settings.showPlayerStats)) {
|
||||||
return (
|
return (
|
||||||
<main className="flex items-center !bg-transparent p-3">
|
<main className="flex items-center !bg-transparent p-3">
|
||||||
@ -116,6 +118,7 @@ export default class Overlay extends Component<OverlayProps, OverlayState> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The overlay
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user