mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
handle null
This commit is contained in:
parent
34d984394c
commit
8e07edf738
@ -313,7 +313,9 @@ export default class StreamViewer extends React.Component {
|
||||
to = !this.state.cinemaMode
|
||||
}
|
||||
|
||||
app.SidebarController.toggleVisibility(!to)
|
||||
if (app.SidebarController) {
|
||||
app.SidebarController.toggleVisibility(!to)
|
||||
}
|
||||
|
||||
this.setState({ cinemaMode: to })
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user