Add UseLocalOnly flag to connection options in Playwright logic

This commit is contained in:
2025-10-12 00:17:11 -04:00
parent e32a6fa791
commit 39c2c7d37a

View File

@@ -125,6 +125,9 @@ func NewPlayWrightBrowser(opts ...PlayWrightBrowserOptions) (Browser, error) {
if o.DontLaunchOnConnectFailure { if o.DontLaunchOnConnectFailure {
opt.DontLaunchOnConnectFailure = true opt.DontLaunchOnConnectFailure = true
} }
if o.UseLocalOnly {
opt.UseLocalOnly = true
}
opt.ShowBrowser = o.ShowBrowser opt.ShowBrowser = o.ShowBrowser
} }