Update.
This commit is contained in:
parent
f8f1235e60
commit
4bb1b0997a
@ -64,19 +64,19 @@
|
||||
{% if channel %}
|
||||
app.channelUid = '{{ channel.uid.value }}'
|
||||
let container = null
|
||||
const getContainer = function(){
|
||||
window.getContainer = function(){
|
||||
if(container)
|
||||
return container
|
||||
container = new Container(app.channelUid,false)
|
||||
return container
|
||||
}
|
||||
window.getContainer = getContainer
|
||||
|
||||
toggleContainer(){
|
||||
if(!container){
|
||||
return getContainer()
|
||||
return window.getContainer()
|
||||
|
||||
}
|
||||
container.terminal.element.hidden = !container.terminal.element.hidden
|
||||
window.container.terminal.element.hidden = !window.container.terminal.element.hidden
|
||||
return container
|
||||
}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user