diff --git a/bridge/webui_bridge.ts b/bridge/webui_bridge.ts index ff89c4d9..6dac9c34 100644 --- a/bridge/webui_bridge.ts +++ b/bridge/webui_bridge.ts @@ -437,7 +437,7 @@ class WebuiBridge { // Get function name const functionName: string = this.#getDataStrFromPacket(buffer8, this.#PROTOCOL_DATA); // Get the raw data - const rawDataIndex: number = this.#PROTOCOL_DATA + 2 + functionName.length + 1; + const rawDataIndex: number = this.#PROTOCOL_DATA + functionName.length + 1; const userRawData = buffer8.subarray(rawDataIndex); if (this.#log) console.log(`WebUI -> CMD -> Send Raw ${buffer8.length} bytes to [${functionName}()]`); // Call the user function, and pass the raw data