Apply suggestion from @DrJKL

This commit is contained in:
Alexander Brown
2026-10-24 12:36:09 -07:00
committed by GitHub
parent 5fe4b0cea7
commit 910bef52e4
-3
View File
@@ -1536,9 +1536,6 @@ app.registerExtension({
});
},
async setup() {
// Patch the prototype rather than the app.graph instance: newer frontends
// create a separate graph per workflow tab, so an instance patch would only
// ever see the graph that existed at startup.
const graphProto = Object.getPrototypeOf(app.graph);
const orig_clear = graphProto.clear;
graphProto.clear = function () {