2026-04-03
This commit is contained in:
parent
15371d2469
commit
5f835ca4e6
45 changed files with 819 additions and 626 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