forked from rDrama/rDrama
1
0
Fork 0

dont load ctrl+enter code in chat to prevent console error

master
Aevann 2023-10-08 22:56:14 +03:00
parent e332387d43
commit 90b3b7cbd3
1 changed files with 1 additions and 1 deletions

View File

@ -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;