From 6045ed31f898e278e4693f2a4e210393fc9153d0 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sun, 21 Jul 2024 21:15:01 -0400 Subject: [PATCH] Supress frontend exception on unhandled message type (#4078) * Supress frontend exception on unhandled message type * nit --- web/scripts/api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/scripts/api.js b/web/scripts/api.js index 39f0a9bb..03c3fb60 100644 --- a/web/scripts/api.js +++ b/web/scripts/api.js @@ -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;