(param, defaultValue)
| 834 | } |
| 835 | |
| 836 | const getQueryVariable = function (param, defaultValue) { |
| 837 | const variables = getQueryVariables() |
| 838 | return variables[param] != null ? variables[param] : defaultValue |
| 839 | } |
| 840 | |
| 841 | const getExperimentValueFromQuery = function (param) { |
| 842 | return { true: 'beta', false: 'control', control: 'control', beta: 'beta' }[getQueryVariable(param)] |
no test coverage detected