Skip to content

Commit

Permalink
Merge branch 'release/1.2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Spring3 committed May 30, 2021
2 parents 5e97603 + a519172 commit 1bbaa50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twitch-auto-points",
"version": "1.2.4",
"version": "1.2.5",
"description": "Automatic twitch bonus point collection",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 8 additions & 2 deletions src/contentScripts/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ function tryToGetReceivedPoints() {
if (attempts === maxAttempts) {
clearInterval(pointsInterval);
console.error('Failed to find the amount of gathered points');
// sending the default amount. For subbed people that would be incorrect, but that's better than loosing track of all of them
browser.runtime.sendMessage({
type: 'add_points',
bonus: 50,
channelId
})
return;
}

Expand Down Expand Up @@ -137,8 +143,8 @@ const onMessage = (message, sender) => {
interval.clear();
clearTimeout(timeout);
}
} else if (message.reset) {
interval.clear()
} else if (message.reset && isEnabled) {
interval.clear();
initialize();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"author": "danv",
"name": "Twitch Auto Points",
"version": "1.2.4",
"version": "1.2.5",
"homepage_url": "https://github.com/Spring3/twitch-auto-points",
"description": "Automatic twitch channel points collection",
"permissions": [
Expand Down

0 comments on commit 1bbaa50

Please sign in to comment.