mirror of https://github.com/PiyushXCoder/lupt.git
bug fix
This commit is contained in:
parent
42e16f44ec
commit
909cbb8975
|
|
@ -156,7 +156,6 @@ function connect(frm) {
|
||||||
var url = '/?' + frm.find('[name=kaksh_kunjika]').val() + '&' +
|
var url = '/?' + frm.find('[name=kaksh_kunjika]').val() + '&' +
|
||||||
frm.find('[name=kunjika]').val() + '&' +
|
frm.find('[name=kunjika]').val() + '&' +
|
||||||
frm.find('[name=name]').val();
|
frm.find('[name=name]').val();
|
||||||
console.log('here')
|
|
||||||
history.pushState({}, 'Lupt Chat', url);
|
history.pushState({}, 'Lupt Chat', url);
|
||||||
|
|
||||||
socket.send(JSON.stringify({cmd: 'list'}));
|
socket.send(JSON.stringify({cmd: 'list'}));
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ let Messages = class {
|
||||||
},2000);
|
},2000);
|
||||||
});
|
});
|
||||||
$('#send_box').keypress(function(e) {
|
$('#send_box').keypress(function(e) {
|
||||||
if(e.originalEvent.charCode == 13 && !e.shiftKey) {
|
if(e.key === 'Enter' && !e.shiftKey) {
|
||||||
send();
|
send();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue