feat(depot): add setting run depot at launch

This commit is contained in:
reya
2023-12-17 08:07:44 +07:00
parent ba88a4e0f2
commit 344bdc0c66
10 changed files with 39 additions and 85 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ export function DepotScreen() {
setLoading(true);
await ark.launchDepot();
await delay(5000); // delay 5s to make sure depot is running
await ark.createSetting('depot', '1');
await delay(2000); // delay 2s to make sure depot is running
// default depot url: ws://localhost:6090
// #TODO: user can custom depot url