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

Catch when browser.study is undefined and inform about relevant actions #89

Open
motin opened this issue Nov 13, 2018 · 0 comments
Open

Comments

@motin
Copy link
Contributor

motin commented Nov 13, 2018

If the study utils web extension experiment API is undefined, it is probably disabled for security reasons. In branded versions of Firefox release and beta, add-ons with webextension experiments needs to be signed. In devedition and nightly, the extensions.legacy.enabled configuration needs to be set to true. If the experiments API is disabled, the following error is reported currently: TypeError: browser.study is undefined; can't access its "onEndStudy" property.
The template could check if browser.study is defined and if not, inform about relevant actions in the browser console.

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

No branches or pull requests

1 participant