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