gog: set GOG_NEWSLETTER=1 to not unsubscribe newsletter, closes #109
This commit is contained in:
parent
9285af2544
commit
db5a98eb88
3 changed files with 3 additions and 1 deletions
2
gog.js
2
gog.js
|
|
@ -128,7 +128,7 @@ try {
|
|||
db.data[user][title].status ||= status;
|
||||
notify_games.push({ title, url, status });
|
||||
|
||||
if (status == 'claimed') {
|
||||
if (status == 'claimed' && !cfg.gog_newsletter) {
|
||||
console.log("Unsubscribe from 'Promotions and hot deals' newsletter");
|
||||
await page.goto('https://www.gog.com/en/account/settings/subscriptions');
|
||||
await page.locator('li:has-text("Promotions and hot deals") label').uncheck();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue