mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
remove header calls
This commit is contained in:
parent
7068ac021b
commit
8ef36e0d40
@ -9,18 +9,6 @@ import "./index.less"
|
|||||||
|
|
||||||
// TODO: Customizable main menu
|
// TODO: Customizable main menu
|
||||||
export default class Main extends React.Component {
|
export default class Main extends React.Component {
|
||||||
componentDidMount = async () => {
|
|
||||||
if (!window.isMobile && window.app?.HeaderController?.isVisible()) {
|
|
||||||
window.app.HeaderController.toggleVisibility(false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
componentWillUnmount() {
|
|
||||||
if (!window.isMobile && !window.app?.HeaderController?.isVisible()) {
|
|
||||||
window.app.HeaderController.toggleVisibility(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const user = this.props.user ?? {}
|
const user = this.props.user ?? {}
|
||||||
|
|
||||||
|
@ -64,7 +64,6 @@ export default class StreamViewer extends React.Component {
|
|||||||
app.eventBus.emit("toogleCompactMode", true)
|
app.eventBus.emit("toogleCompactMode", true)
|
||||||
|
|
||||||
app.SidebarController.toggleVisibility(false)
|
app.SidebarController.toggleVisibility(false)
|
||||||
app.HeaderController.toggleVisibility(false)
|
|
||||||
|
|
||||||
// fetch user info in the background
|
// fetch user info in the background
|
||||||
this.gatherUserInfo()
|
this.gatherUserInfo()
|
||||||
@ -85,7 +84,6 @@ export default class StreamViewer extends React.Component {
|
|||||||
app.eventBus.emit("toogleCompactMode", false)
|
app.eventBus.emit("toogleCompactMode", false)
|
||||||
|
|
||||||
app.SidebarController.toggleVisibility(true)
|
app.SidebarController.toggleVisibility(true)
|
||||||
app.HeaderController.toggleVisibility(true)
|
|
||||||
|
|
||||||
if (this.timerCounterInterval) {
|
if (this.timerCounterInterval) {
|
||||||
this.timerCounterInterval = clearInterval(this.timerCounterInterval)
|
this.timerCounterInterval = clearInterval(this.timerCounterInterval)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user