Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 565e554

Browse files
authored
fix: set undefined port when advanced webview debugging
When debugging webviews in 'advanced' mode and the port was not defined by the user it was left `undefined`.
1 parent 80cd6c5 commit 565e554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/edgeChromiumDebugAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class EdgeChromiumDebugAdapter extends ChromeDebugAdapter {
4141

4242
if (args.useWebView === 'advanced') {
4343
// Advanced scenarios should use port 0 by default since we expect the callback to inform us of the correct port
44-
if (args.port === 2015) {
44+
if (!args.port || args.port === 2015) {
4545
args.port = 0;
4646
}
4747

0 commit comments

Comments
 (0)