mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Remove unused feature-toggle-utils file (#7703)
This commit is contained in:
parent
62d5e47bcb
commit
f441f83b16
@ -1,11 +0,0 @@
|
||||
function checkFeatureToggle (name) {
|
||||
const queryPairMap = window.location.search.substr(1).split('&')
|
||||
.map(pair => pair.split('='))
|
||||
.reduce((pairs, [key, value]) => ({ ...pairs, [key]: value }), {})
|
||||
const featureToggles = queryPairMap['ft'] ? queryPairMap['ft'].split(',') : []
|
||||
return Boolean(featureToggles.find(ft => ft === name))
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
checkFeatureToggle,
|
||||
}
|
Loading…
Reference in New Issue
Block a user