forked from rDrama/rDrama
dont load ctrl+enter code in chat to prevent console error
parent
e332387d43
commit
90b3b7cbd3
|
@ -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) => {
|
document.addEventListener('keydown', (e) => {
|
||||||
if (!((e.ctrlKey || e.metaKey) && e.key === "Enter")) return;
|
if (!((e.ctrlKey || e.metaKey) && e.key === "Enter")) return;
|
||||||
|
|
Loading…
Reference in New Issue