mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Enable chrome app feature flag
This commit is contained in:
parent
94f52bafd1
commit
48b502a347
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue