diff options
-rw-r--r-- | misc/dist/html/editor.html | 2 | ||||
-rw-r--r-- | modules/websocket/library_godot_websocket.js | 6 | ||||
-rw-r--r-- | platform/javascript/native/audio.worklet.js | 4 |
3 files changed, 5 insertions, 7 deletions
diff --git a/misc/dist/html/editor.html b/misc/dist/html/editor.html index 27b762af15..d4234d08ac 100644 --- a/misc/dist/html/editor.html +++ b/misc/dist/html/editor.html @@ -320,7 +320,7 @@ throw new Error('Invalid status mode'); } statusMode = mode; - } + }; function animateStatusIndeterminate(ms) { var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8); diff --git a/modules/websocket/library_godot_websocket.js b/modules/websocket/library_godot_websocket.js index 5d3baa0d2b..7076a6f43d 100644 --- a/modules/websocket/library_godot_websocket.js +++ b/modules/websocket/library_godot_websocket.js @@ -162,10 +162,8 @@ var GodotWebSocket = { for(i = 0; i < p_buf_len; i++) { bytes_array[i] = getValue(p_buf + i, 'i8'); } - var out = bytes_array; - if (p_raw) { - out = bytes_array.buffer; - } else { + var out = bytes_array.buffer; + if (!p_raw) { out = new TextDecoder("utf-8").decode(bytes_array); } return GodotWebSocket.send(p_id, out); diff --git a/platform/javascript/native/audio.worklet.js b/platform/javascript/native/audio.worklet.js index 320af6189c..f91787b993 100644 --- a/platform/javascript/native/audio.worklet.js +++ b/platform/javascript/native/audio.worklet.js @@ -45,7 +45,7 @@ class RingBuffer { read(output) { const size = this.buffer.length; - let from = 0 + let from = 0; let to_write = output.length; if (this.rpos + to_write > size) { const high = size - this.rpos; @@ -150,7 +150,7 @@ class GodotProcessor extends AudioWorkletProcessor { const output = outputs[0]; const chunk = output[0].length * output.length; if (this.output_buffer.length != chunk) { - this.output_buffer = new Float32Array(chunk) + this.output_buffer = new Float32Array(chunk); } if (this.output.data_left() >= chunk) { this.output.read(this.output_buffer); |