Created
March 1, 2022 15:31
-
-
Save chrisblakely01/44f210cedccb8f0f7e351b81e7bb0a11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function init() { | |
const cf = initialize('9bc8ccb3-f290-4767-87d7-f7aa70efe497', { | |
identifier: 'chris_prod', | |
}); | |
cf.on(Event.READY, (flags) => { | |
console.log('*** READY: List of flags -', flags); | |
}); | |
cf.on(Event.CHANGED, (flagInfo) => { | |
console.log( | |
`*** FLAG CHANGED: ${flagInfo.flag} changed to ${flagInfo.value}` | |
); | |
}); | |
} | |
init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment