Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Updating TS for latest main updates #12
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtuc committed Mar 12, 2021
1 parent 3164d61 commit 8d296bd
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
20 changes: 18 additions & 2 deletions lib/StockSocket.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/StockSocket.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stocksocket",
"version": "1.2.0",
"version": "1.2.1",
"description": "Real-time Yahoo Stock Prices",
"main": "lib/stocksocket.js",
"types": "lib",
Expand Down
10 changes: 5 additions & 5 deletions src/StockSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ async function startDataFeed(
"#consent-page > div > div > div > form > div.wizard-body > div.actions.couple > button"
)
) {
document
.querySelector(
"#consent-page > div > div > div > form > div.wizard-body > div.actions.couple > button"
)
.click();
var element = document.querySelector(
"#consent-page > div > div > div > form > div.wizard-body > div.actions.couple > button"
) as HTMLElement;
element.click();

return;
}
} catch (e) {
Expand Down

0 comments on commit 8d296bd

Please sign in to comment.