Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/docs/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ Then paste your API key into the code below:
<script>
flagsmith.init({
environmentID: '<add your API key here!>',
// api: 'https://flagsmith.example.com/api/v1/', // Self-hosted or private cloud only: set to your Flagsmith API URL
onChange: (oldFlags, params) => {},
});
</script>
```

Now when the browser opens the web page, it will download the Javascript SDK and make a call to `edge.api.flagsmith.com`
to get the flags for our Environment. You can see this in the browser network tab:
(or your own Flagsmith API, if you set the `api` option) to get the flags for our Environment. You can see this in the
browser network tab:

<div style={{textAlign: 'center'}}><img width="75%" src="/img/quickstart/demo_create_7.png"/></div>

Expand Down
Loading