From 90b3b7cbd353c6aafcfda60ced2f57862496e73d Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 8 Oct 2023 22:56:14 +0300 Subject: [PATCH] dont load ctrl+enter code in chat to prevent console error --- files/assets/js/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index be8653914..58ac3cc4e 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -108,7 +108,7 @@ function postToastSwitch(t, url, button1, button2, cls, extraActionsOnSuccess) { }); } -if (!location.pathname.endsWith('/submit')) +if (!location.pathname.endsWith('/submit') && !location.pathname.endsWith('/chat')) { document.addEventListener('keydown', (e) => { if (!((e.ctrlKey || e.metaKey) && e.key === "Enter")) return;