From de23e92b69aecbe3ab88929718919088b64019b6 Mon Sep 17 00:00:00 2001 From: tomato6966 Date: Sat, 21 Dec 2024 23:57:08 +0100 Subject: [PATCH] Change origin and styles --- src/services/yahooFinanceService.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/yahooFinanceService.tsx b/src/services/yahooFinanceService.tsx index 915f974..55096e9 100644 --- a/src/services/yahooFinanceService.tsx +++ b/src/services/yahooFinanceService.tsx @@ -38,7 +38,7 @@ interface YahooChartResult { } const isDev = import.meta.env.DEV; -const API_BASE = isDev ? '/yahoo' : 'https://api.allorigins.win/raw?url=' + encodeURIComponent('https://query1.finance.yahoo.com'); +const API_BASE = isDev ? '/yahoo' : 'https://query1.finance.yahoo.com'; export const searchAssets = async (query: string): Promise => { try {