Skip to content

Commit

Permalink
hack for inheritance of env variable to local chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
eliastor committed Aug 30, 2023
1 parent 8319f85 commit 5a40490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/provider/ctx_creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ var (

func chromedpCtxWithLocalChrome() ctxCreatorFunc {
return func(parentCtx context.Context) (context.Context, context.CancelFunc) {
return chromedp.NewContext(parentCtx)
ctx, _ := chromedp.NewExecAllocator(parentCtx, append(chromedp.DefaultExecAllocatorOptions[:], chromedp.Env("POWEREDBY=eliastor"))...)
return chromedp.NewContext(ctx)
}
}

Expand Down

0 comments on commit 5a40490

Please sign in to comment.