Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to set switch states in JavaScript #59

Closed
tobych opened this issue Oct 2, 2012 · 2 comments
Closed

Be able to set switch states in JavaScript #59

tobych opened this issue Oct 2, 2012 · 2 comments

Comments

@tobych
Copy link

tobych commented Oct 2, 2012

I want to set switch states from the JavaScript console to help debug my code.

@jsocol
Copy link
Collaborator

jsocol commented Feb 15, 2018

Actually I think this has always been possible:

> console.log(waffle.FLAGS);
> waffle.FLAGS['my_flag'] = true;
> waffle.flag_is_active('my_flag');

Similar for SWITCHES and SAMPLES.

I'm facepalming pretty hard I never noticed that.

@jsocol jsocol closed this as completed Feb 15, 2018
@jsocol
Copy link
Collaborator

jsocol commented Feb 15, 2018

Sorry, not always, just since #97!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants