const isStaging = () => process.env.SCRATCH_ENV === 'staging';

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')
};

// 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: true
};

Enable chrome app feature flag
Enable chrome app feature flag