doc: add development section into readme
This commit is contained in:
parent
ca5d887fd8
commit
7e0245a636
1 changed files with 13 additions and 1 deletions
14
README.md
14
README.md
|
@ -6,6 +6,18 @@ Note for Firefox user:
|
|||
|
||||
**yacd** is using the [Fetch (Web) API][fetch-api] to stream chunked API response from Clash to draw the traffic chart. But currently the streaming feature in Firefox needs to be turned on manually. Here is how to:
|
||||
|
||||
Visit `about:config`, search for `dom.streams.enabled` and `javascript.options.streams`, double click those item to turn them on.
|
||||
Visit `about:config`, search for `dom.streams.enabled` and `javascript.options.streams`, double click those items to turn them on.
|
||||
|
||||
[fetch-api]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
|
||||
|
||||
## Development
|
||||
|
||||
```sh
|
||||
# install dependencies
|
||||
yarn
|
||||
|
||||
# start the dev server
|
||||
yarn start
|
||||
|
||||
# go to http://127.0.0.1:3000
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue