Parcourir la source

[Web]Fix WebSocket returning empty close-reason.

Zae il y a 2 ans
Parent
commit
7689f48a75
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      modules/websocket/library_godot_websocket.js

+ 1 - 1
modules/websocket/library_godot_websocket.js

@@ -124,7 +124,7 @@ const GodotWebSocket = {
 			const ref = IDHandler.get(p_id);
 			if (ref && ref.readyState < ref.CLOSING) {
 				const code = p_code;
-				const reason = GodotRuntime.parseString(p_reason);
+				const reason = p_reason;
 				ref.close(code, reason);
 			}
 		},