Skip to content

Commit

Permalink
Update main_v2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-dev-guy authored Oct 1, 2023
1 parent ccf64d0 commit fba7c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/main_v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function sendMessage(){
_sendMessage = document.getElementById("MessageBoxInput").value;
document.getElementById("MessageBoxInput").value = '';
if (_sendMessage!='' && document.chatUsername!=null && document.chatUri!=null){
_passableMessage = _sendMessage.substring(0, 185);
_passableMessage = _sendMessage;
console.log(document.chatUsername);
//chatAppCreateMessageBox(document.chatUsername,_passableMessage);
document.chatInterface.scrollTop = document.chatInterface.scrollHeight;
Expand All @@ -129,7 +129,7 @@ function sendMessage(){
}
async function sendMessageToServer(text) {
var Mcount = parseInt(getStorage('userMessageCount'), 10);
var message = await createMessageObject(text)
var message = await createMessageObject(text);
const url = `${proxy}/${document.chatUri}/add/${document.chatUsername};${Mcount}/0/0/${message}`;
sendStorage('userMessageCount',Mcount+1);
console.log(url);
Expand Down

0 comments on commit fba7c46

Please sign in to comment.