Skip to content

Commit

Permalink
Navigate pages to store homepage to set EPIC_EG1 cookie. Resolves #371
Browse files Browse the repository at this point in the history
  • Loading branch information
claabs committed Feb 8, 2024
1 parent f301374 commit 00a97bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/puppet/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { getCookiesRaw, setPuppeteerCookies, userHasValidCookie } from '../common/cookie';
import { CONFIG_DIR } from '../common/config';
import { getAccountAuth } from '../common/device-auths';
import { STORE_HOMEPAGE } from '../common/constants';

export interface PuppetBaseProps {
browser: Browser;
Expand Down Expand Up @@ -71,6 +72,7 @@ export default class PuppetBase {
});
await cdpClient.detach();
await page.setCookie(...puppeteerCookies);
await page.goto(STORE_HOMEPAGE, { waitUntil: 'networkidle2' });
return page;
} catch (err) {
await this.handlePageError(err, page);
Expand Down

0 comments on commit 00a97bf

Please sign in to comment.