mirror of
https://github.com/Tomato6966/investment-portfolio-simulator.git
synced 2025-04-19 00:31:15 +02:00
Change origin and styles
This commit is contained in:
parent
5224f25093
commit
de23e92b69
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ interface YahooChartResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
const isDev = import.meta.env.DEV;
|
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[]> => {
|
export const searchAssets = async (query: string): Promise<Asset[]> => {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue