Skip to content

Commit 1bbaa50

Browse files
committed
Merge branch 'release/1.2.5'
2 parents 5e97603 + a519172 commit 1bbaa50

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
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.2.4",
3+
"version": "1.2.5",
44
"description": "Automatic twitch bonus point collection",
55
"main": "index.js",
66
"scripts": {

src/contentScripts/worker.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ function tryToGetReceivedPoints() {
4949
if (attempts === maxAttempts) {
5050
clearInterval(pointsInterval);
5151
console.error('Failed to find the amount of gathered points');
52+
// sending the default amount. For subbed people that would be incorrect, but that's better than loosing track of all of them
53+
browser.runtime.sendMessage({
54+
type: 'add_points',
55+
bonus: 50,
56+
channelId
57+
})
5258
return;
5359
}
5460

@@ -137,8 +143,8 @@ const onMessage = (message, sender) => {
137143
interval.clear();
138144
clearTimeout(timeout);
139145
}
140-
} else if (message.reset) {
141-
interval.clear()
146+
} else if (message.reset && isEnabled) {
147+
interval.clear();
142148
initialize();
143149
}
144150
}

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": "danv",
44
"name": "Twitch Auto Points",
5-
"version": "1.2.4",
5+
"version": "1.2.5",
66
"homepage_url": "https://github.com/Spring3/twitch-auto-points",
77
"description": "Automatic twitch channel points collection",
88
"permissions": [

0 commit comments

Comments
 (0)