Skip to content
Open
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
3 changes: 3 additions & 0 deletions docs/docs/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ 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
onChange: (oldFlags, params) => {},
});
</script>
Expand All @@ -106,6 +107,7 @@ Let's hook this value up to our button, so that the value of the flag controls w
<script>
flagsmith.init({
environmentID: '<add your API key here!>',
// api: 'https://flagsmith.example.com/api/v1/', // Self-hosted or private cloud only
onChange: (oldFlags, params) => {
if (flagsmith.hasFeature('show_demo_button')) {
var submit_button = document.getElementById('submit_button');
Expand All @@ -131,6 +133,7 @@ Our entire web page now reads like this:
<script>
flagsmith.init({
environmentID: 'ZfmJTbLQZrhZVHkVhXbsNi',
// api: 'https://flagsmith.example.com/api/v1/', // Self-hosted or private cloud only
onChange: (oldFlags, params) => {
if (flagsmith.hasFeature('show_demo_button')) {
var submit_button = document.getElementById('submit_button');
Expand Down
Loading