Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
e42fd54b
Unverified
Commit
e42fd54b
authored
Nov 20, 2019
by
chrisgarrity
Committed by
GitHub
Nov 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3550 from LLK/hotfix/chromeos-release
HOTFIX [develop] Enable feature flag for chrome app download
parents
9e784434
48b502a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/lib/feature-flags.js
src/lib/feature-flags.js
+3
-1
No files found.
src/lib/feature-flags.js
View file @
e42fd54b
// eslint-disable-next-line no-unused-vars
const
isStaging
=
()
=>
process
.
env
.
SCRATCH_ENV
===
'
staging
'
;
const
isStaging
=
()
=>
process
.
env
.
SCRATCH_ENV
===
'
staging
'
;
// eslint-disable-next-line no-unused-vars
const
flagInUrl
=
flag
=>
{
const
flagInUrl
=
flag
=>
{
const
url
=
(
window
.
location
&&
window
.
location
.
search
)
||
''
;
const
url
=
(
window
.
location
&&
window
.
location
.
search
)
||
''
;
return
url
.
indexOf
(
`
${
flag
}
=true`
)
!==
-
1
;
return
url
.
indexOf
(
`
${
flag
}
=true`
)
!==
-
1
;
};
};
module
.
exports
=
{
module
.
exports
=
{
CHROME_APP_RELEASED
:
isStaging
()
&&
flagInUrl
(
'
CHROME_APP_RELEASED
'
)
CHROME_APP_RELEASED
:
true
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment