mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +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
|
||||
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() {
|
||||
const user = this.props.user ?? {}
|
||||
|
||||
|
@ -64,7 +64,6 @@ export default class StreamViewer extends React.Component {
|
||||
app.eventBus.emit("toogleCompactMode", true)
|
||||
|
||||
app.SidebarController.toggleVisibility(false)
|
||||
app.HeaderController.toggleVisibility(false)
|
||||
|
||||
// fetch user info in the background
|
||||
this.gatherUserInfo()
|
||||
@ -85,7 +84,6 @@ export default class StreamViewer extends React.Component {
|
||||
app.eventBus.emit("toogleCompactMode", false)
|
||||
|
||||
app.SidebarController.toggleVisibility(true)
|
||||
app.HeaderController.toggleVisibility(true)
|
||||
|
||||
if (this.timerCounterInterval) {
|
||||
this.timerCounterInterval = clearInterval(this.timerCounterInterval)
|
||||
|
Loading…
x
Reference in New Issue
Block a user