gog: fix #200, uncheck 'Marketing communications through Trusted Partners'

This commit is contained in:
Ralf Vogler 2023-09-07 13:56:37 +02:00
parent e30216c9b8
commit d51f7310d9

1
gog.js
View file

@ -130,6 +130,7 @@ try {
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("Marketing communications through Trusted Partners") label').uncheck();
await page.locator('li:has-text("Promotions and hot deals") label').uncheck();
}
}