Skip to content

Commit c6978ec

Browse files
committed
Fix loadProject documentation
1 parent 88f9604 commit c6978ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ storage.addWebStore(
150150
);
151151
```
152152

153-
You can supply scaffolding with a project.json file or a full sb, sb2, or sb3 file as an ArrayBuffer, Uint8Array, or Blob and then feed it into `scaffolding.loadProject`. However you go about acquiring those is up to you; you can ask the user to enter one into an input or fetch it from your own server. If you want to load projects from Scratch, we suggest the following as a starting point.
153+
You can supply scaffolding with a project.json file or a full sb, sb2, or sb3 file as an ArrayBuffer or Uint8Array and then feed it into `scaffolding.loadProject`. However you go about acquiring those is up to you; you can ask the user to enter one into an input or fetch it from your own server. If you want to load projects from Scratch, we suggest the following as a starting point.
154154

155155
```js
156156
// See https://docs.turbowarp.org/unshared-projects#developers
@@ -183,7 +183,7 @@ const loadProject = (projectId) => {
183183
loadProject('60917032');
184184
```
185185

186-
Once the project loads, you can start the project with
186+
Loading projects takes a while, so this returns a Promise that resolves when the project loads. Once it loads, you can start the project with:
187187

188188
```js
189189
scaffolding.greenFlag();

0 commit comments

Comments
 (0)