This commit is contained in:
Piyush मिश्रः 2021-05-13 00:25:13 +05:30
parent 42e16f44ec
commit 909cbb8975
2 changed files with 1 additions and 2 deletions

View File

@ -156,7 +156,6 @@ function connect(frm) {
var url = '/?' + frm.find('[name=kaksh_kunjika]').val() + '&' +
frm.find('[name=kunjika]').val() + '&' +
frm.find('[name=name]').val();
console.log('here')
history.pushState({}, 'Lupt Chat', url);
socket.send(JSON.stringify({cmd: 'list'}));

View File

@ -33,7 +33,7 @@ let Messages = class {
},2000);
});
$('#send_box').keypress(function(e) {
if(e.originalEvent.charCode == 13 && !e.shiftKey) {
if(e.key === 'Enter' && !e.shiftKey) {
send();
e.preventDefault();
clearTimeout(timeout);