mirror of https://github.com/JustKato/FreePad.git
* Fixed possible bug
This commit is contained in:
parent
1d3383c8c6
commit
bf144c6ecb
|
@ -40,7 +40,7 @@ class PadSocket {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the message is a string
|
// Check if the message is a string
|
||||||
if ( typeof message == 'string' ) {
|
if ( typeof message !== 'object' ) {
|
||||||
// Convert the message into a map[string]interface{}
|
// Convert the message into a map[string]interface{}
|
||||||
message = {
|
message = {
|
||||||
"message": message,
|
"message": message,
|
||||||
|
|
Loading…
Reference in New Issue