Skip to content

Commit

Permalink
修复:Steam社区凭证更新错误(#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Sep 13, 2024
1 parent d44004c commit 4aa0f28
Show file tree
Hide file tree
Showing 18 changed files with 179 additions and 190 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.4.11
name: 4.4.11
tag_name: v4.4.12
name: 4.4.12
body: '- 修复:Steam社区凭证更新错误(#26)'
files: |-
dist/auto-task-v4-for-giveawaysu.user.js
Expand Down
11 changes: 5 additions & 6 deletions dist/auto-task-v4-for-giveawaysu.all.user.js

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/auto-task-v4-for-giveawaysu.user.js

Large diffs are not rendered by default.

46 changes: 22 additions & 24 deletions dist/auto-task-v4.all.user.js

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

46 changes: 22 additions & 24 deletions dist/auto-task-v4.user.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions doc/docs/logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ lang: zh-CN

## V4.4

### V4.4.12

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.4.12)

- 修复:Steam社区凭证更新错误([#26](https://github.com/HCLonely/auto-task-v4/issues/26))

### V4.4.11

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.4.11)
Expand Down
4 changes: 2 additions & 2 deletions 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": "auto-task-v4",
"version": "4.4.11",
"version": "4.4.12",
"change": [
"修复:Steam社区凭证更新错误(#26)"
],
Expand Down
11 changes: 5 additions & 6 deletions page/dist/auto-task-v4-for-giveawaysu.all.user.js

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions page/dist/auto-task-v4-for-giveawaysu.user.js

Large diffs are not rendered by default.

46 changes: 22 additions & 24 deletions page/dist/auto-task-v4.all.user.js

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions page/dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions page/dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

46 changes: 22 additions & 24 deletions page/dist/auto-task-v4.user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion page/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auto-task-v4",
"version": "4.4.11",
"version": "4.4.12",
"change": [
"修复:Steam社区凭证更新错误(#26)"
],
Expand Down
7 changes: 3 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,6 @@ if (window.location.hostname === 'discord.com') {
GM_setValue('steamCommunityAuth', null);
return null;
};
if (GM_getValue('steamCommunityAuth') !== 'update') {
return null;
}
const steam64Id = document.body.innerHTML.match(/g_steamID = "(.+?)";/)?.[1];
const communitySessionID = document.body.innerHTML.match(/g_sessionID = "(.+?)";/)?.[1];
const userName = document.body.innerHTML.match(/steamcommunity.com\/id\/(.+?)\//)?.[1];
Expand All @@ -271,7 +268,9 @@ if (window.location.hostname === 'discord.com') {
if (communitySessionID) {
data.communitySessionID = communitySessionID;
GM_setValue('steamCommunityAuth', data);
window.close();
if (GM_getValue('steamCommunityAuth') === 'update') {
window.close();
}
}
});
} else {
Expand Down

0 comments on commit 4aa0f28

Please sign in to comment.