Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agjs committed Oct 21, 2023
1 parent fb3dea8 commit 73b0cd8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,15 @@ Steps to Setup:
- Open the chat interface of each streaming platform you're broadcasting to in a new tab or window.

By doing this, the content script from the Chrome Extension will have the necessary access to query and traverse the DOM of these chats. This enables it to locate the specific elements required for scraping chat data.

### Using Fake Generated Messages for UI Development

If you're working on the UI and need to see how it interacts with messages, you have the option to enable the generation of fake messages. You can set the `VITE_USE_DUMMY_DATA` environment variable to `"true"` either by exporting it in your terminal or by adding it to your `src/.env` file:

**Setting in the `src/.env` file:**

```env
VITE_USE_DUMMY_DATA=true
```

Once this flag is set to `"true"`, the app will switch to using the `useMessageListenerDev` hook instead of the `useMessageListenerProd` hook. This will generate fake messages at regular intervals, allowing you to test the UI without requiring a backend service for messages.

0 comments on commit 73b0cd8

Please sign in to comment.