Commit b283c77
committed
Fix alerts to read steamId from betterAuthUser like watchlist
REAL ROOT CAUSE:
- Watchlist reads: chrome.storage.local.get(['betterAuthUser']).steamId
- Alerts tried to read: g_steamID from page (always null on market pages)
FIX:
- Changed content.js to read from betterAuthUser.steamId
- Now matches watchlist implementation exactly (line 109-113)
- Uses the SAME auth data that watchlist uses
Console logs prove this:
- Watchlist: 'Found Steam ID from stored auth: 76561199094452064' ✅
- Alerts (before): 'Steam ID from page: null' ❌
- Alerts (after): Will read from betterAuthUser ✅1 parent ff5b13a commit b283c77
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
1730 | | - | |
| 1730 | + | |
1731 | 1731 | | |
1732 | | - | |
1733 | | - | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
1734 | 1742 | | |
1735 | | - | |
1736 | 1743 | | |
1737 | 1744 | | |
1738 | 1745 | | |
| |||
0 commit comments