From 4bb1b0997a482124d7e4b5ccc6bc6d2d47d8a648 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 10 Jun 2025 13:04:33 +0200 Subject: [PATCH] Update. --- src/snek/templates/app.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/snek/templates/app.html b/src/snek/templates/app.html index 9ee5449..5d6369e 100644 --- a/src/snek/templates/app.html +++ b/src/snek/templates/app.html @@ -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 %}