From 48b502a34720e40ba769ef84481b0b8fe0206e2a Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Mon, 18 Nov 2019 15:23:34 -0500 Subject: [PATCH] Enable chrome app feature flag --- src/lib/feature-flags.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/feature-flags.js b/src/lib/feature-flags.js index 2965c1e9c..009c37464 100644 --- a/src/lib/feature-flags.js +++ b/src/lib/feature-flags.js @@ -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 };