You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix godot_js_websocket_send function unused assignment.
This commit is contained in:
@@ -162,10 +162,8 @@ var GodotWebSocket = {
|
|||||||
for(i = 0; i < p_buf_len; i++) {
|
for(i = 0; i < p_buf_len; i++) {
|
||||||
bytes_array[i] = getValue(p_buf + i, 'i8');
|
bytes_array[i] = getValue(p_buf + i, 'i8');
|
||||||
}
|
}
|
||||||
var out = bytes_array;
|
var out = bytes_array.buffer;
|
||||||
if (p_raw) {
|
if (!p_raw) {
|
||||||
out = bytes_array.buffer;
|
|
||||||
} else {
|
|
||||||
out = new TextDecoder("utf-8").decode(bytes_array);
|
out = new TextDecoder("utf-8").decode(bytes_array);
|
||||||
}
|
}
|
||||||
return GodotWebSocket.send(p_id, out);
|
return GodotWebSocket.send(p_id, out);
|
||||||
|
|||||||
Reference in New Issue
Block a user