@narumitw/pi-chrome-devtools 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/chrome-devtools.ts +3 -3
package/package.json
CHANGED
package/src/chrome-devtools.ts
CHANGED
|
@@ -1266,9 +1266,9 @@ function shouldAutoLaunchAfterEndpointError(error: unknown) {
|
|
|
1266
1266
|
if (!canAutoLaunchBrowser()) return false;
|
|
1267
1267
|
if (isLaunchableEndpointError(error)) return true;
|
|
1268
1268
|
|
|
1269
|
-
//
|
|
1270
|
-
//
|
|
1271
|
-
return !state.portConfigured && error instanceof DevToolsEndpointError
|
|
1269
|
+
// After the attach-first attempt (including its retry window, when applicable) fails, treat any
|
|
1270
|
+
// DevTools endpoint error on an unpinned port as a conflict we can avoid with a dynamic port.
|
|
1271
|
+
return !state.portConfigured && error instanceof DevToolsEndpointError;
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
function canAutoLaunchBrowser() {
|