mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
Add JS bundle for gallery and begin Algolia/React gallery search migration GitOrigin-RevId: ddce48df9108b4880b39e522c30617fd1a7c0a87
10 lines
224 B
JavaScript
10 lines
224 B
JavaScript
function shouldDisplayFeature(req, name, variantFlag) {
|
|
if (req.query && req.query[name]) {
|
|
return req.query[name] === 'true'
|
|
} else {
|
|
return variantFlag === true
|
|
}
|
|
}
|
|
|
|
module.exports = { shouldDisplayFeature }
|