From c2b5560c9a54d2e4416562a3e8f8a936927bdf3c Mon Sep 17 00:00:00 2001 From: omar92 Date: Sat, 8 Apr 2023 20:24:59 +0200 Subject: [PATCH] remove logs --- web/extensions/core/rerouteNode.js | 2 -- web/extensions/core/widgetInputs.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/web/extensions/core/rerouteNode.js b/web/extensions/core/rerouteNode.js index ac0b5d79e..ba31ac6b9 100644 --- a/web/extensions/core/rerouteNode.js +++ b/web/extensions/core/rerouteNode.js @@ -93,8 +93,6 @@ app.registerExtension({ const nodeOutType = node.inputs && node.inputs[link?.target_slot] && node.inputs[link.target_slot].type ? node.inputs[link.target_slot].type : null; if (inputType && nodeOutType !== inputType) { // The output doesnt match our input so disconnect it - console.log("Disconnecting", { "node": node }, "as it doesnt match type of ", { "inputNode": inputNode }); - console.log("Input type:", inputType, "Output type:", nodeOutType); if (inputNode.type !== "Reroute") node.disconnectInput(link.target_slot); } else { diff --git a/web/extensions/core/widgetInputs.js b/web/extensions/core/widgetInputs.js index 0010f5f5a..ac4c4c22d 100644 --- a/web/extensions/core/widgetInputs.js +++ b/web/extensions/core/widgetInputs.js @@ -236,7 +236,6 @@ app.registerExtension({ onConnectOutput(slot, type, input, target_node, target_slot) { // Fires before the link is made allowing us to reject it if it isn't valid - console.log("onConnectOutput", { "input": input, "target_node": target_node, "target_slot": target_slot, "slot": slot, "type": type }); if (!input.widget) { if (input.type === '*') {//allow reroute nodes @@ -246,7 +245,6 @@ app.registerExtension({ if (!(input.type in ComfyWidgets)) return false; //not a ComfyWidgets input } } - console.log("1"); if (this.outputs[slot].links?.length) { return this.#isValidConnection(input); @@ -265,13 +263,11 @@ app.registerExtension({ const input = theirNode.inputs[link.target_slot]; if (!input) return; - console.log(input); var _widget; if (!input.widget) { if (input.type === '*') { //connected to reroute node var outputType = theirNode.__outputType; - console.log("onFirstConnection", { "outputType": outputType }); if (!(outputType in ComfyWidgets)) return; _widget = { "name": outputType, "config": [outputType, {}] }//fake widget