diff --git a/static/js/app.js b/static/js/app.js index 7fe2700..64d7084 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -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'})); diff --git a/static/js/message.js b/static/js/message.js index b331e65..f6bb966 100644 --- a/static/js/message.js +++ b/static/js/message.js @@ -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);