Skip to content

Commit

Permalink
another careless mistake :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0ursTruly authored Jul 27, 2024
1 parent ac72d99 commit 5feb771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webject.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
}
server.on('message',async function(msg){
if(typeof msg.data!=="undefined") msg=msg.data; //if statement true for browsers
if(msg=="PING") lastPing=Date.now();
if(msg=="PING") return lastPing=Date.now();
obj=stringToObj(coding?(await (coding.decoder(msg))):msg,obj);
if(!firstMsg){
objToString(obj)
Expand Down

0 comments on commit 5feb771

Please sign in to comment.