Browse Source

Fix unhandled message "execution_cached"

pull/764/head
ssit 1 year ago
parent
commit
0c874e604c
  1. 3
      web/scripts/api.js

3
web/scripts/api.js

@ -120,6 +120,9 @@ class ComfyApi extends EventTarget {
case "execution_error":
this.dispatchEvent(new CustomEvent("execution_error", { detail: msg.data }));
break;
case "execution_cached":
this.dispatchEvent(new CustomEvent("execution_cached", { detail: msg.data }));
break;
default:
if (this.#registered.has(msg.type)) {
this.dispatchEvent(new CustomEvent(msg.type, { detail: msg.data }));

Loading…
Cancel
Save