Skip to content

Commit d7d85a8

Browse files
committed
add port to cdp(). Closes #3066
1 parent 791eeb1 commit d7d85a8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/changelog-1.3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@
3737
- Warn instead of crash on bad URI ([#3220](https://github.com/quarto-dev/quarto-cli/issues/3220))
3838
- ensure `video` shortcode works with `embed-resources` and `self-contained` ([#3310](https://github.com/quarto-dev/quarto-cli/issues/3310))
3939
- Add optional `rel` attribute to navigation links ([#3212](https://github.com/quarto-dev/quarto-cli/issues/3212))
40+
- Use the right port when CRI is initialized multiple times ([#3066](https://github.com/quarto-dev/quarto-cli/3066))

src/core/cri/cri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export async function criClient(appPath?: string, port?: number) {
111111
rawClient: () => client,
112112

113113
open: async (url: string) => {
114-
client = await cdp();
114+
client = await cdp({ port });
115115
const { Network, Page } = client;
116116
await Network.enable();
117117
await Page.enable();

0 commit comments

Comments
 (0)