Merge pull request #3550 from LLK/hotfix/chromeos-release

HOTFIX [develop] Enable feature flag for chrome app download
This commit is contained in:
chrisgarrity 2019-11-20 10:44:56 -05:00 committed by GitHub
commit e42fd54ba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,12 @@
// eslint-disable-next-line no-unused-vars
const isStaging = () => process.env.SCRATCH_ENV === 'staging';
// eslint-disable-next-line no-unused-vars
const flagInUrl = flag => {
const url = (window.location && window.location.search) || '';
return url.indexOf(`${flag}=true`) !== -1;
};
module.exports = {
CHROME_APP_RELEASED: isStaging() && flagInUrl('CHROME_APP_RELEASED')
CHROME_APP_RELEASED: true
};