fixing typo and vite config

This commit is contained in:
Marston Connell 2023-05-21 12:26:23 -04:00
parent 15a30b3208
commit 074e411af9

View File

@ -18,6 +18,19 @@ To get started using Jackal in the browser, you'll need a few things!
To get started, make sure you start your project using Vite. If you have an existing React app for example, re-init the project using Vite.
#### Updating Vite Config
```js
// In vite.config.js:
import nodePolyfills from 'vite-plugin-node-stdlib-browser'
export default defineConfig({
plugins: [
nodePolyfills()
],
})
```
### Connecting Your Wallet
```js
@ -99,7 +112,7 @@ const fileIo = await FileIo.trackIo(wallet)
const listOfFolders = ["folder_name", ...]
// you can create as many folders as you would like this way
// The first time a user connects, the use must init the system
// The first time a user connects, they must init the system
const storage = await StorageHandler.trackStorage(wallet)
const msg = storage.makeStorageInitMsg()
await fileIo.generateInitialDirs(msg, listOfFolders)