mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
bugfix: Websocket checks parsed payload data
We parse the JSON payload, but then it wasn't being referred to when we were checking the data type, which could lead to looking at the `type` attribute of a string.
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
if (data.room && data.room != that.properties.room) {
|
||||
return;
|
||||
}
|
||||
if (e.data.type == 1) {
|
||||
if (data.type == 1) {
|
||||
if (
|
||||
data.data.object_class &&
|
||||
LiteGraph[data.data.object_class]
|
||||
@@ -105,7 +105,7 @@
|
||||
that.triggerSlot(0, data.data);
|
||||
}
|
||||
} else {
|
||||
that._last_received_data[e.data.channel || 0] = data.data;
|
||||
that._last_received_data[data.channel || 0] = data.data;
|
||||
}
|
||||
};
|
||||
this._ws.onerror = function(e) {
|
||||
|
||||
Reference in New Issue
Block a user