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

[flags] Activate flag via URLs #52

Open
ptbrowne opened this issue Sep 19, 2018 · 1 comment
Open

[flags] Activate flag via URLs #52

ptbrowne opened this issue Sep 19, 2018 · 1 comment
Labels
flags good first issue Good for newcomers

Comments

@ptbrowne
Copy link
Contributor

ptbrowne commented Sep 19, 2018

I think @enguerran has done something similar for contacts.

http://bank.cozy.tools:8080/?flag__toto=salut could activate the flag { toto: "salut" }

@kosssi kosssi added the flags label Sep 19, 2018
@enguerran
Copy link

enguerran commented Sep 24, 2018

https://github.com/cozy/cozy-contacts/blob/73c26e5f6aac408dd1fac2517760314f730b7268/src/components/Toolbar.jsx#L8-L10

const searchParams = new URL(window.location).searchParams
const fakeintentEnabled = searchParams.get('fakeintent') !== null
const vcardEnabled = searchParams.get('enablevcardimport') !== null

@ptbrowne ptbrowne added the good first issue Good for newcomers label Sep 24, 2018
@ptbrowne ptbrowne changed the title Activate flag via URLs [flags] Activate flag via URLs Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flags good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants