From 411db66d81d85ad0f2c12a068bf3f9803e3b1e09 Mon Sep 17 00:00:00 2001 From: EmmanuelMr18 Date: Mon, 20 Jan 2025 01:52:52 -0500 Subject: [PATCH] Revert "chore: refresh models when getting object_info" This reverts commit 67f25b2353cde0c318f0450d5c3222091a988625. --- web-plugin/index.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/web-plugin/index.js b/web-plugin/index.js index 8aafa2c..1b745db 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -1999,25 +1999,6 @@ api.fetchApi = async (route, options) => { } } - if (route.startsWith("/object_info") && ext.native_mode) { - const info = await getSelectedWorkflowInfo(); - console.log("info, ", info); - if (info) { - const data = { - refresh_private: true, - refresh_public: true - } - await fetch("/comfyui-deploy/refresh-models", { - method: "POST", - headers: { - Authorization: `Bearer ${info.cd_token}`, - "Content-Type": "application/json", - }, - body: JSON.stringify(data), - }); - } - } - return await orginal_fetch_api.call(api, route, options); }; @@ -2176,4 +2157,4 @@ function createMenuRightButton(config) { } button.setAttribute('data-pd-tooltip', config.tooltip) return button -} +} \ No newline at end of file