url auto edit

This commit is contained in:
Piyush मिश्रः 2021-05-13 00:21:41 +05:30
parent f75cea8ac6
commit 42e16f44ec
1 changed files with 9 additions and 0 deletions

View File

@ -150,6 +150,15 @@ function connect(frm) {
State.chat();
State.hideProgress();
Messages.pushStatus('Connected as '+data.name+' at '+Messages.currentTime());
//push url
var frm = $('form[name=kaksh_sec]');
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'}));
})