Change origin and styles

This commit is contained in:
tomato6966 2024-12-21 23:57:08 +01:00
parent 5224f25093
commit de23e92b69

View file

@ -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<Asset[]> => {
try {