Skip to content

Commit e4daeab

Browse files
authored
fix: wording on warning for setPreviewScript (#94)
1 parent bfc95eb commit e4daeab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ Since you can control servers running in WebContainer, it's preferable to add th
359359

360360
<br />
361361

362-
In particular, this might break existing or future WebContainer features added in the future.
362+
In particular, this might break existing WebContainer features or ones that will be added later.
363363
:::
364364

365365
<h4 id="wc-setpreviewscript-signature">
@@ -381,7 +381,7 @@ const script = `
381381

382382
await webcontainerInstance.setPreviewScript(script);
383383

384-
// now all previews will always print hello world to the console.
384+
// now all previews will always print hello world to the console if they serve HTML
385385
```
386386

387387
### `teardown`

0 commit comments

Comments
 (0)