From a697cf47770c2f268a34849bc546d4a55632bef3 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 7 Jul 2024 20:43:37 +1200 Subject: [PATCH] make sure container exists --- public/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 179a9ed..1038d87 100644 --- a/public/index.html +++ b/public/index.html @@ -1527,7 +1527,9 @@ scrollMessagesToBottom: function() { Vue.nextTick(() => { const container = document.getElementById("messages"); - container.scrollTop = container.scrollHeight; + if(container){ + container.scrollTop = container.scrollHeight; + } }); }, async getAppInfo() {