* Fixed possible bug

This commit is contained in:
Daniel Legt 2022-06-06 22:50:20 +03:00
parent 1d3383c8c6
commit bf144c6ecb
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class PadSocket {
}
// Check if the message is a string
if ( typeof message == 'string' ) {
if ( typeof message !== 'object' ) {
// Convert the message into a map[string]interface{}
message = {
"message": message,