We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519a1d4 commit 3c4c5a0Copy full SHA for 3c4c5a0
src/index-browser.ts
@@ -3,4 +3,12 @@ import browserEnvironment from "./env-browser.js";
3
4
yahooFinance._env = browserEnvironment;
5
6
+// NOTE: The repo name is hardcoded, see #167
7
+console.warn(
8
+ "⚠️ WARNING! This package (i.e. `yahoo-finance2`) is being used in the browser.",
9
+ "Trying to use this may not work because of CORS. Be aware of that (and don't file issues for help with that).",
10
+ "You can use a proxy to make CORS errors disappear, but we will not help you with that.",
11
+ "Please read the README (https://github.com/gadicc/node-yahoo-finance2) for more details."
12
+);
13
+
14
export default yahooFinance;
0 commit comments