wip
This commit is contained in:
parent
15371d2469
commit
d631949388
42 changed files with 594 additions and 403 deletions
|
|
@ -11,7 +11,7 @@ export type BackendHeaders = {
|
|||
*/
|
||||
export const getBackendHeadersFromHtml = async (page: Page): Promise<BackendHeaders> => {
|
||||
const backendHeaders: BackendHeaders | undefined = pipe(
|
||||
Option.fromNullable(await page.locator("#injection-v2").textContent()),
|
||||
Option.fromNullishOr(await page.locator("#injection-v2").textContent()),
|
||||
Option.andThen((j) => JSON.parse(j) as BackendHeaders),
|
||||
Option.getOrUndefined,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue