Skip to content

Commit

Permalink
Supress frontend exception on unhandled message type (#4078)
Browse files Browse the repository at this point in the history
* Supress frontend exception on unhandled message type

* nit
  • Loading branch information
huchenlei committed Jul 22, 2024
1 parent f836e69 commit 6045ed3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/scripts/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ class ComfyApi extends EventTarget {
case "execution_start":
this.dispatchEvent(new CustomEvent("execution_start", { detail: msg.data }));
break;
case "execution_success":
this.dispatchEvent(new CustomEvent("execution_success", { detail: msg.data }));
break;
case "execution_error":
this.dispatchEvent(new CustomEvent("execution_error", { detail: msg.data }));
break;
Expand Down

0 comments on commit 6045ed3

Please sign in to comment.