Skip to content

Commit 3f2b899

Browse files
committed
Merge branch 'release/1.1.3'
2 parents d5a1236 + 8eb3b31 commit 3f2b899

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twitch-auto-points",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Automatic twitch bonus point collection",
55
"main": "index.js",
66
"scripts": {

src/contentScripts/worker.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// 14 minutes 58 seconds in ms
2-
const ALMOST_FIFTEEN_MINUTES_MS = 15 * 60 * 1000 - 2000;
3-
const FIVE_SECONDS = 5 * 1000;
1+
// 14 minutes 57 seconds in ms
2+
const ALMOST_FIFTEEN_MINUTES_MS = 15 * 60 * 1000 - 3000;
3+
const THREE_SECONDS = 3 * 1000;
44

55
const maxClickAttempts = 5;
66
let isEnabled;
@@ -23,7 +23,7 @@ const IntervalOperator = () => {
2323
const interval = IntervalOperator();
2424

2525
function isLive() {
26-
return !!document.getElementsByClassName('live-indicator')[0];
26+
return !!document.getElementsByClassName('live-indicator-container')[0];
2727
}
2828

2929
function attemptToClick() {
@@ -46,7 +46,7 @@ function waitForBonusButton() {
4646
clickAttempts ++;
4747

4848
if (!clicked && clickAttempts > maxClickAttempts) {
49-
pauseFor(FIVE_SECONDS);
49+
pauseFor(THREE_SECONDS);
5050
}
5151
}, 1000);
5252
}
@@ -72,7 +72,7 @@ function waitForWhenLive() {
7272
interval.clear();
7373
waitForBonusButton();
7474
}
75-
}, FIVE_SECONDS);
75+
}, THREE_SECONDS);
7676
}
7777

7878

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"author": "Daniyil Vasylenko",
44
"name": "Twitch Auto Points",
5-
"version": "1.1.2",
5+
"version": "1.1.3",
66
"homepage_url": "https://github.com/Spring3/twitch-auto-points",
77
"description": "Automatic twitch channel points collection",
88
"permissions": [

0 commit comments

Comments
 (0)