From bf144c6ecb0f7f8368431bd38f911efbb5e35ea1 Mon Sep 17 00:00:00 2001 From: Kato Twofold Date: Mon, 6 Jun 2022 22:50:20 +0300 Subject: [PATCH] * Fixed possible bug --- static/js/ws.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/ws.js b/static/js/ws.js index 8fe8e7b..803cd37 100644 --- a/static/js/ws.js +++ b/static/js/ws.js @@ -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,