diff --git a/app/store/plugin.ts b/app/store/plugin.ts index 3bf08e68d..74f0fbe17 100644 --- a/app/store/plugin.ts +++ b/app/store/plugin.ts @@ -62,7 +62,7 @@ export const FunctionToolService = { const api = new OpenAPIClientAxios({ definition: yaml.load(plugin.content) as any, axiosConfigDefaults: { - adapter: adapter as any, + adapter: (window.__TAURI__ ? adapter : ["xhr"]) as any, baseURL, headers, },