mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
feat(driver): add env param to Launch interface + all implementations
This commit is contained in:
1 parent
8aa61a4927
commit
003aba9ea2
6 files changed
+7
-6
No files matched your search
@@ -77,7 +77,7 @@ func New() *Driver {
|
||||
return d
|
||||
}
|
||||
|
||||
func (d *Driver) Launch(ctx context.Context, bundleID string, clearState bool) error {
|
||||
func (d *Driver) Launch(ctx context.Context, bundleID string, clearState bool, _ map[string]string) error {
|
||||
if clearState {
|
||||
if err := chromedp.Run(d.tabCtx, network.ClearBrowserCookies()); err != nil {
|
||||
return fmt.Errorf("clear cookies: %w", err)
|
||||
|
||||
Reference in new issue
Block a user