Skip to content

Instantly share code, notes, and snippets.

@chrisblakely01
Created March 1, 2022 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisblakely01/44f210cedccb8f0f7e351b81e7bb0a11 to your computer and use it in GitHub Desktop.
Save chrisblakely01/44f210cedccb8f0f7e351b81e7bb0a11 to your computer and use it in GitHub Desktop.
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