mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
bugfix: Correct reference to websocket room name
When inside the onmessage function, `this` no longer refers to the websocket node. It needs to be accessed with `that`, which is where we stored it previously.
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
this._ws.onmessage = function(e) {
|
||||
that.boxcolor = "#AFA";
|
||||
var data = JSON.parse(e.data);
|
||||
if (data.room && data.room != this.properties.room) {
|
||||
if (data.room && data.room != that.properties.room) {
|
||||
return;
|
||||
}
|
||||
if (e.data.type == 1) {
|
||||
|
||||
Reference in New Issue
Block a user