Unverified Commit 6045ed31 authored by Chenlei Hu's avatar Chenlei Hu Committed by GitHub
Browse files

Supress frontend exception on unhandled message type (#4078)

* Supress frontend exception on unhandled message type

* nit
parent f836e693
...@@ -136,6 +136,9 @@ class ComfyApi extends EventTarget { ...@@ -136,6 +136,9 @@ class ComfyApi extends EventTarget {
case "execution_start": case "execution_start":
this.dispatchEvent(new CustomEvent("execution_start", { detail: msg.data })); this.dispatchEvent(new CustomEvent("execution_start", { detail: msg.data }));
break; break;
case "execution_success":
this.dispatchEvent(new CustomEvent("execution_success", { detail: msg.data }));
break;
case "execution_error": case "execution_error":
this.dispatchEvent(new CustomEvent("execution_error", { detail: msg.data })); this.dispatchEvent(new CustomEvent("execution_error", { detail: msg.data }));
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment