From 73f3c0381ffc3a4651bfc4f79cba43083aa8abec Mon Sep 17 00:00:00 2001 From: Leandro Menezes Date: Wed, 18 Dec 2024 01:02:41 -0300 Subject: [PATCH] removed hardcoded plugin url --- .../desktop-client/src/components/ActualPluginsProvider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop-client/src/components/ActualPluginsProvider.tsx b/packages/desktop-client/src/components/ActualPluginsProvider.tsx index 0d172969d4d..996ff5130d7 100644 --- a/packages/desktop-client/src/components/ActualPluginsProvider.tsx +++ b/packages/desktop-client/src/components/ActualPluginsProvider.tsx @@ -134,7 +134,7 @@ async function loadPluginFromRepo(repo: string): Promise { // ); // console.log(`Downloading plugin “${repo}” v${latestVersion}...`); - const response = await fetch('http://localhost:3001/index.es.js'); + const response = await fetch('/index.es.js'); if (!response.ok) { throw new Error(`Failed to download plugin script for ${repo}`); @@ -145,7 +145,7 @@ async function loadPluginFromRepo(repo: string): Promise { console.log(`Plugin “${repo}” loaded successfully.`); return await loadPluginScript(indexJsBlob); } catch (error) { - console.error(`Error loading plugin “repo}”:`, error); + console.error(`Error loading plugin “${repo}”:`, error); return null; } }