Adaptation for CanvasApp new global variables inside a context

This commit is contained in:
Luis Fernando Molina committed 2018-10-25 10:49:46 +02:00
1 parent bb72fe23a6
commit 2d81cf446c
3 files changed
+15 -10

No files matched your search

+1 -1
View File
@@ -7,4 +7,4 @@ if (process.env.NODE_ENV !== 'production') {
localStorage.setItem('debug', 'advanced-algos:*')
}
ReactDOM.render(<MasterApp />, document.getElementById('root'))
ReactDOM.render(<MasterApp />, document.getElementById('masterApp'))
+2 -2
View File
@@ -27,14 +27,14 @@ const styles = theme => ({
class Home extends Component {
componentDidMount () {
window.CANVAS_VISIBLE = true
window.canvasApp.visible = true
let body = document.getElementById('body')
body.style = 'margin: 0px; padding: 0px; border: 0px; overflow:hidden;'
window.HIDE_FOOTER = true
}
componentWillUnmount () {
window.CANVAS_VISIBLE = false
window.canvasApp.visible = false
let body = document.getElementById('body')
body.style = ''
window.HIDE_FOOTER = false