Skip to content

Commit

Permalink
Fixed the bug of not clicking the button
Browse files Browse the repository at this point in the history
  • Loading branch information
avi12 committed Dec 25, 2020
1 parent f64b53d commit 0d4f997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/content-script-twitch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function collectBonus() {
const btnBonus = document.querySelector(".tw-interactive.tw-button--success");
const btnBonus = document.querySelector(".tw-button--success");
if (btnBonus) {
const { activeElement } = document;
btnBonus.click();
Expand Down

0 comments on commit 0d4f997

Please sign in to comment.